Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 May 2002 16:50:43 -0700
From:      "Tim E Schafer" <tim_schafer@agship.com>
To:        "'Bill Huey'" <billh@gnuppy.monkey.org>, "'Ari Suutari'" <ari.suutari@syncrontech.com>
Cc:        "'Java FreeBSD'" <freebsd-java@FreeBSD.ORG>, <freebsd-emulation@FreeBSD.ORG>
Subject:   RE: All Linux JDK with Hotspot or JIT unstable on FreeBSD
Message-ID:  <049001c202b4$a77c1150$441814ac@newtim>
In-Reply-To: <20020523231408.GA2662@gnuppy.monkey.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Have I told you all lately how much I really appreciate the hard work
put
into making Java on FreeBSD a reality :)

I may have to use Linux for some up coming stuff where native threads is
a make or break feature

But I dream of the day when FreeBSD is on equal ground (or better!) in
the Java arena

That said I place here a shameless plug for the only Linux a FreeBSD
user could love (or at least like)

www.gentoo.org

They have a ports system!
Unfortunately they are more concerned with pushing the envelope than
with the stability and security I've come to know and love in FreeBSD.


So again, many thanks to those that have gotten Java on FreeBSD to where
it is now. I look forward to where it will be.

--------------------------------------------
Tim E Schafer         tim_schafer@agship.com
Programmer
800-562-9915 x190 or 916-376-6190

Associated Global Systems
3231 Evergreen Ave
West Sacramento, CA 95691
-------------------------------------------- 


-----Original Message-----
From: owner-freebsd-java@FreeBSD.ORG
[mailto:owner-freebsd-java@FreeBSD.ORG] On Behalf Of Bill Huey
Sent: Thursday, May 23, 2002 4:14 PM
To: Ari Suutari
Cc: Tim E Schafer; Java FreeBSD; freebsd-emulation@FreeBSD.ORG
Subject: Re: All Linux JDK with Hotspot or JIT unstable on FreeBSD

On Thu, May 23, 2002 at 10:24:23AM +0300, Ari Suutari wrote:
> 	It is known that linux jdks with hotspot are not stable on
> 	FreeBSD linux emulation. Must be something hard to fix,
> 	since it has been like this for quite a long time.
> 	(maybe this has something to do with signal handling
> 	differences between linux and freebsd ?)

It's almost certain the case. Linux's clone() uses SIGCHLD to notify
thread termination and other crazy non-Posix things in their threading
system. They can't implement the full specificiation without some kind
of kernel based signal sharing and other things. The HotSpot code
supporting this stuff is all over the place both inside and outside of 
their threading implementation.

> 	Yes. Maybe someone on freebsd-emulation mailing
> 	list could help. Before this gets fixed, one must be mad
> 	to run a production server using linux-jdk + hotspot + freebsd.
> 	Current solutions are (to my understanding) to either
> 	use native jdk 1.3 (which has no hotspot - yet - so performance
> 	is not so great) or install linux to your server and use
linux-jdk
> 	(which works ok but you can kiss goodbye for freebsd :-()
> 
> 		Ari S.

The FreeBSD port of HotSpot over here is half running. I'm having
problems
with the ABI layer that mediates/marshalls native calls from the HotSpot
system to the raw JVM. It uses the JVM for first class type support
facilities.

Threads spawn and block correctly, the HotSpot interpreter subsystem
initializes
correctly, classes initialize correctly, but it's having problems doing
some
kind of JVM_ArrayCopy(), which implies some kind of stack corruption
problem.

It's encouraging, yet disappointing since I'm just this random *guy*
that's
just getting into what is probably the most advanced compiler of its
kind on
that planet that's written in high complicated C++ program/class
structure.

It's basically a SMPng-ed GCC in C++.

http://www.cs.ucsb.edu/labs/oocsb/self/

The Self runtime is what HotSpot is originally based upon and does
insanely
complicate dynamic type analysis, adaptive inlining and other things
that
pretty much represents what the state-of-the-art is for this kind of
system.

bill


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-emulation" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?049001c202b4$a77c1150$441814ac>