From owner-freebsd-java Thu Jul 25 22: 5:22 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 7668D37B400 for ; Thu, 25 Jul 2002 22:05:18 -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 1C74943E5E for ; Thu, 25 Jul 2002 22:05:18 -0700 (PDT) (envelope-from billh@gnuppy.monkey.org) Received: from billh by gnuppy.monkey.org with local (Exim 3.35 #1 (Debian)) id 17XxHr-00010H-00; Thu, 25 Jul 2002 22:05:11 -0700 Date: Thu, 25 Jul 2002 22:05:10 -0700 To: Greg Lewis Cc: freebsd-java@FreeBSD.ORG Subject: Re: 1.3.1 patchset 7 Message-ID: <20020726050510.GA3854@gnuppy.monkey.org> References: <20020726035044.A10113@misty.eyesbeyond.com> <20020725214255.GA2411@gnuppy.monkey.org> <20020726100636.A11776@misty.eyesbeyond.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020726100636.A11776@misty.eyesbeyond.com> 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 Fri, Jul 26, 2002 at 10:06:36AM +0930, Greg Lewis wrote: > I thought there was some contention that -STABLE's pthreads weren't up > to the task either, or is that not correct? Yes, it's got a bug suspension bug that's fixed in -current. Then I found/fixed a bug in -current concerning suspension at thread creation time. > Also, how do you feel about writing a paragraph or so on building > HotSpot? I'm sure it would help a lot of people :). Sure, it's pretty easy if your patch is using the sources I commited recently. You basically need a fully functioning -current. That might be a bit difficult since it's going through a lot of volatile changes. "Instructions" Here's what you do: 1) Install gcc31. That comes with -current, but you might want to build it from the ports anyways since the "platform_i486" expects that. 2a) Move into "hotspot1.3.1/build/linux/" b) Use: setenv ALT_BOOTDIR /usr/local/linux-jdk1.3.1/ # if you have an SMP machine otherwise left this line out. setenv HOTSPOT_BUILD_JOBS 4 c) Type "gmake core compiler1 compiler2" to build all six HotSpot versions. d) Install it using some variation of: ============================================== #!/bin/csh #set files="linux_i486_compiler1/jvmg/libjvm_g.so" set files="linux_i486_core/product/libjvm.so linux_i486_core/jvmg/libjvm_g.so" #set files="linux_i486_compiler1/product/libjvm.so linux_i486_compiler1/jvmg/libjvm_g.so" #set files="linux_i486_compiler2/product/libjvm.so linux_i486_compiler2/jvmg/libjvm_g.so" ls -l $files set destination=../../../j2sdk1.3.1/build/bsd-i386/lib/i386/hotspot rm -rf $destination mkdir $destination echo cp $files $destination cp $files $destination ls -l $destination ============================================== e) Modify jvm.cfg to use the HotSpot libraries. f) Run the JVM. "Comments" Right now, "core" works best. Compiler[1,2] should work faster, but for some reason it doesn't. I don't know if it's the pthreads library, my nanosleep wrapper or whatever... so that should be checked out by somebody that's got some time and technical ability. "core" should at least get you a working HotSpot in interpreted mode and use that for now since it seems the fastest. Everything I've tried works well in it so far. "Finally" I'm trying to leave the project and do other things outside of the this group right now. I can't keep doing this for free any more since I've got to think of my overall career and facilitate activities that forward it. HotSpot was the last thing I really wanted to finish. Since I got it largely working now, I've made the effort to focus on other things that are key to what I want to do in the near future. I was going to do FreeBSD 5.0 hacking, but my experience with the FreeBSD community overall has been pretty negative (not this specific group though) stemming from the days pre-BSDi and now largely because of their clique driven culture. It's a well known problem outline by Matt Dillion. In that regard, this is probably going to be one of the last things I'll be doing for FreeBSD. We'll see if this is an overreaction, but my faith in FreeBSD overall is pessimistic because of my experiences. bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message