From owner-freebsd-java Tue Aug 6 2:11:47 2002 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 A0F0937B400; Tue, 6 Aug 2002 02:11:45 -0700 (PDT) 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 470B943E65; Tue, 6 Aug 2002 02:11:45 -0700 (PDT) (envelope-from billh@gnuppy.monkey.org) Received: from billh by gnuppy.monkey.org with local (Exim 3.35 #1 (Debian)) id 17c0NU-00054t-00; Tue, 06 Aug 2002 02:11:44 -0700 Date: Tue, 6 Aug 2002 02:11:44 -0700 To: Alexey Zelkin Cc: java@FreeBSD.org, "Bill Huey (Hui)" Subject: Re: status: native jdk 1.4.0 port Message-ID: <20020806091144.GA19437@gnuppy.monkey.org> References: <20020805194153.A73363@ark.cris.net> <20020805230216.GA3261@gnuppy.monkey.org> <20020806110204.A70372@phantom.cris.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020806110204.A70372@phantom.cris.net> User-Agent: Mutt/1.4i 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 Tue, Aug 06, 2002 at 11:02:04AM +0300, Alexey Zelkin wrote: > Not, yet. Mostly my patches. I did not have a time to take a look on p7 yet. Hey, I looked at your patches and it'll work for the main thread (from main()), but it will fail trying to spawn other threads. I had this happen when I was doing the port at BSDi, where the compiler and other tools that don't spawn threads worked pretty much flawlessly but blew up when I ran multithreaded GUI apps. Back then, newly created threads it were failing on asserts, because of a race in pthreads that wouldn't suspend a thread within an signal/wait exchange in a condition variable. The missing suspend operation would then allow for the newly create thread run before the stack could be attached to the garbage collector, therefore failing. You'll eventually need to deal with that problem and I suggest that you migrate to the current stuff in patch 7 and merge the changes in it into your bsd/ tree. If you get that done, merged, commited, etc... I'll abandon my linux/ tree and use your stuff. Signal handling in HotSpot is pretty hairy, so replicating that work wouldn't be the most direct method of getting the HotSpot core running. Use my stuff in other words. ;) There isn't an immediately need to do this since you're still trying to get 1.4 to build, but you will need it or some how address these issues to be able to run the environment correctly once that's done. That's my suggestion. Open source communication is pretty crappy, so keep in touch. ;) bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message