From owner-freebsd-java Mon Sep 17 14:56:14 2001 Delivered-To: freebsd-java@freebsd.org Received: from sharmas.dhs.org (cpe-66-1-147-119.ca.sprintbbd.net [66.1.147.119]) by hub.freebsd.org (Postfix) with ESMTP id 318F337B40E for ; Mon, 17 Sep 2001 14:56:11 -0700 (PDT) Received: by sharmas.dhs.org (Postfix, from userid 500) id 82F235E418; Mon, 17 Sep 2001 15:00:04 -0700 (PDT) Date: Mon, 17 Sep 2001 15:00:04 -0700 From: Arun Sharma To: Fuyuhiko Maruyama Cc: java@FreeBSD.ORG Subject: Re: JVM and native threads Message-ID: <20010917150004.A13383@sharmas.dhs.org> References: <55vgjcqv87.wl@tripper.private> <20010825095746.A1015@sharmas.dhs.org> <55heuv0xtl.wl@tripper.private> <20010826171010.A6742@gnuppy> <20010827143244.A12305@misty.eyesbeyond.com> <55k7zqnd1x.wl@tripper.private> <20010827095624.B14875@sharmas.dhs.org> <55itf9cmln.wl@tripper.private> <20010827181249.A16093@sharmas.dhs.org> <554rqsqmcd.wl@tripper.private> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.15i In-Reply-To: <554rqsqmcd.wl@tripper.private>; from fuyuhik8@is.titech.ac.jp on Tue, Aug 28, 2001 at 11:40:34PM +0900 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 On Tue, Aug 28, 2001 at 11:40:34PM +0900, Fuyuhiko Maruyama wrote: > > Since they claim to run SpecJVM on Linux and it doesn't crash and burn, > > they must be doing something right :) > Codes at root_set_enum_ia32.cpp says it works as thier papers but it > isn't true on Linux because the key function > thread_gc_get_context(...) isn't implemented for Linux. > See: > 1. base_natives/common/thread_manager.cpp > 2. mains/orp/stubs.cpp > 3. arch/ia32/base_natives/java_lang_thread_ia32.h > > Why the function isn't implemented in Linux is just the same problem > we have, I think -- there is no POSIX API to get context of thread. See the explanation by one of the ORP developers on why GC works correctly on Linux and FreeBSD. http://groups.yahoo.com/group/orp/message/348 Bottomline: forcibly suspending a thread using non portable APIs isn't worth the effort, except for extreme cases. -Arun To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message