Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Oct 2002 16:46:54 +0300
From:      Alexey Zelkin <phantom@FreeBSD.ORG>
To:        Brennan Stehling <brennan@offwhite.net>
Cc:        freebsd-java@FreeBSD.ORG
Subject:   Re: native jdk 1.4
Message-ID:  <20021001164654.A43479@ark.cris.net>
In-Reply-To: <F043C5E4-D42E-11D6-821D-003065F6F346@offwhite.net>; from brennan@offwhite.net on Sun, Sep 29, 2002 at 11:41:51PM -0500
References:  <20020925193911.A39217@phantom.cris.net> <F043C5E4-D42E-11D6-821D-003065F6F346@offwhite.net>

next in thread | previous in thread | raw e-mail | index | archive | help
hi,

From quick look APR is something that incapsulates threads implementation
details to some generic interfaces that later are using in apache.

JVM code wrote in same manner. There're machine dependent code directories
that contains machine/OS specific functions as well as OS specific
directories that contains OS specific threads manipulation code in JVM
sources. There placed some set of class methods implementation that later
are used in MI code. Most improtant thing that we need to achieve is
to have cleanly implemented MD and OSD code.

Also please note that MD part of code is about 20% of Hotspot, and
MI is about 80%.

I doubt that ARP will help a lot here.

On Sun, Sep 29, 2002 at 11:41:51PM -0500, Brennan Stehling wrote:
> Would it make sense to use the Apache Portable Runtime as a base for 
> the FreeBSD Java VM?
> 
> I figure that it was created due to the difference in pthread support 
> between platforms and if you base the Java VM on top of APR then you 
> can let APR do what it has to do and the JVM code can be much more 
> portable.
> 
> My skills do not lie in this area, but it would make sense if you port 
> the software to work with APR it would simplify work to move it to 
> NetBSD, OpenBSD, Darwin and possibly over to Linux and MacOS X.  If all 
> works out ideally, you could serve up identical code for each platform 
> and APR is the piece which conforms to the environment.
> 
> But again, I do not know the deep technical details.  I would be 
> curious as to the main VM developers on this list.
> 
> - Brennan
> 
> 
> On Wednesday, September 25, 2002, at 11:39 AM, Alexey Zelkin wrote:
> 
> > hi,
> >
> > On Wed, Sep 25, 2002 at 11:59:20AM -0400, Daniel Fisher wrote:
> >> Hello,
> >> I've read some discussion on this list about a native port of jdk 1.4.
> >> Is it available for testing somewhere?
> >> I can't find it in the ports CVS.
> >> If not what is the recommendation for people who must use 1.4?
> >> I've tried using the linux-sun port, but it won't even compile must 
> >> less run any classes.
> >
> > Unfortunatelly effort is stalled now. I have started back in August 
> > porting
> > based on linux hotspot sources, but there are a lot of differences in
> > (primarily) stack management between FreeBSD pthread and LinuxThreads.
> >
> > After spending of unreasonable period of time in attempt to rewrite
> > stack management I had to stop and switch to Solaris source base.
> >
> > Switch was succesfuly done in begining of September - no one of 
> > previously
> > existent linux problems appeared, but instead I got few very specific
> > problems with signals there. Deep kernel signalling and libc_r signals
> > handling and talk to Daniel shown that this scheme (solaris based) will
> > not work for -STABLE 100% correctly (it worked somehow after some 
> > hackery)
> > until {get,set}context() functions are MFCed (along with other stuff).
> >
> > I have hoped to get a testing machine to setup -CURRENT last week and
> > continue, but still not have it :-(
> >
> >
> > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > with "unsubscribe freebsd-java" in the body of the message
> >

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?20021001164654.A43479>