From owner-freebsd-java Sat Sep 22 13:38:57 2001 Delivered-To: freebsd-java@freebsd.org Received: from matsulab.is.titech.ac.jp (matsulab.is.titech.ac.jp [131.112.35.129]) by hub.freebsd.org (Postfix) with ESMTP id 729E837B417 for ; Sat, 22 Sep 2001 13:38:53 -0700 (PDT) Received: from tripper.private by matsulab.is.titech.ac.jp (8.8.8+Sun/3.7W) id FAA12386; Sun, 23 Sep 2001 05:38:46 +0900 (JST) Date: Sun, 23 Sep 2001 05:41:37 +0900 Message-ID: <55r8szvtz2.wl@tripper.private> From: Fuyuhiko Maruyama To: carlo@vis.ethz.ch (Carlo Dapor) Cc: freebsd-java@freebsd.org Subject: Re: JIT and native threads are mutually exclusive ? In-Reply-To: <20010922194328.9CD6A275B6@naboo.ethz.ch> References: <20010922194328.9CD6A275B6@naboo.ethz.ch> User-Agent: Wanderlust/2.6.0 (Twist And Shout) on XEmacs/21.5.3 (asparagus) MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, At Sat, 22 Sep 2001 21:43:28 +0200 (CEST), Carlo Dapor wrote: > > Dear Java hackers > > I noticed that running java -version -Djava.compiler=OpenJIT (or =shujit) > with jdk1.3.1, it is correctly reported as green threaded and jitted VM. > > When I launch it with -native, either JITs are not found. > > Is this intentional for the time being ? I think it isn't caused by either JavaVM or JIT compiler but by runtime linker. I'm not sure why runtime linker doesn't perform exactly same thing for both of each thread type (green, native). The problem is because JITs have some symbols in libm.so cannot be resolved only with native thread. If you really need JIT compiler that run on native_threads, you can rebuild JIT compiler to link libm in it. It's easy. For OpenJIT, gmake LDLIBS=-lm # OpenJIT's Makefile will perform something strange that install # target rebuild libOpenJIT.so, so you may also need LDLIBS=-lm when # you do `gmake install' For shujit, gmake LIBS=-lm Resulting JIT compilers can run on both green_threads and native_threads. -- Fuyuhiko MARUYAMA Matsuoka laboratory, Department of Mathematical and Computing Sciences, Graduate School of Information Science and Engineering, Tokyo Institute of Technology. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message