Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Sep 2001 15:00:04 -0700
From:      Arun Sharma <arun@sharmas.dhs.org>
To:        Fuyuhiko Maruyama <fuyuhik8@is.titech.ac.jp>
Cc:        java@FreeBSD.ORG
Subject:   Re: JVM and native threads
Message-ID:  <20010917150004.A13383@sharmas.dhs.org>
In-Reply-To: <554rqsqmcd.wl@tripper.private>; from fuyuhik8@is.titech.ac.jp on Tue, Aug 28, 2001 at 11:40:34PM %2B0900
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010917150004.A13383>