From owner-freebsd-java Thu Jan 23 17:12:19 2003 Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 41CA737B401 for ; Thu, 23 Jan 2003 17:12:18 -0800 (PST) Received: from gnuppy.monkey.org (wsip68-15-8-100.sd.sd.cox.net [68.15.8.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id A0C5243F5B for ; Thu, 23 Jan 2003 17:12:17 -0800 (PST) (envelope-from billh@gnuppy.monkey.org) Received: from billh by gnuppy.monkey.org with local (Exim 3.36 #1 (Debian)) id 18bsMl-0000zL-00; Thu, 23 Jan 2003 17:10:43 -0800 Date: Thu, 23 Jan 2003 17:10:42 -0800 To: Max Khon Cc: Greg Lewis , freebsd-java@freebsd.org, "Bill Huey (Hui)" Subject: Re: /usr/local/include/utils.h Message-ID: <20030124011042.GA3765@gnuppy.monkey.org> References: <20030123194719.B25462@iclub.nsu.ru> <20030124044501.B76567@misty.eyesbeyond.com> <20030124033021.A38610@iclub.nsu.ru> <20030123214624.GA2919@gnuppy.monkey.org> <20030124062940.A44070@iclub.nsu.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030124062940.A44070@iclub.nsu.ru> User-Agent: Mutt/1.5.3i From: Bill Huey (Hui) 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 Fri, Jan 24, 2003 at 06:29:40AM +0600, Max Khon wrote: > This file (the file I attached) contains jmp_buf stuff + > use of pthread_get_attr_np to get thread stack address and its size > in portable (between libc_r versions) way. > I think it could be useful for 1.3.1 HotSpot too. Where's the attachment ? Getting those values needs to also respect how safepointing is done and how Solaris's LWP stuff backs a thread with various run states. Fortunately, I've done the thinking and have figured out that you can just get any thread context, manipulate it as long as it's not the current thread, so it's likely your patch will work (yet to see it). > I mean: is jdk13 built with -DWITH_NATIVE_THREADS required for HotSpot? > I saw this requirement on some Japanese sites. Well, it's partially required. It needs it and a small series of files to compile correctly since HotSpot then uses some those compiled files to interface to. The JVM itself is used as a supporting library to HotSpot, scary I know. :) The native threading stuff you're compiling is glue to the JVM for HotSpot. The native threading interface stuff contains stuff that it partially needs, but the threading system is pure HotSpot, C++ and other wierd stuff. It's also very scary. :) bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message