Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Feb 2003 18:02:37 +0200
From:      Alexey Zelkin <phantom@FreeBSD.org.ua>
To:        Max Khon <fjoe@iclub.nsu.ru>
Cc:        Alexey Zelkin <phantom@FreeBSD.org.ua>, Munehiro Matsuda <haro@kgt.co.jp>, c.rued@xsb.com, freebsd-java@FreeBSD.ORG
Subject:   Re: jdk13 and WITH_NATIVE_THREADS compile failing
Message-ID:  <20030221180237.A64596@phantom.cris.net>
In-Reply-To: <20030221212457.B12703@iclub.nsu.ru>; from fjoe@iclub.nsu.ru on Fri, Feb 21, 2003 at 09:24:58PM %2B0600
References:  <15956.19601.491644.845972@ool-18bacefa.dyn.optonline.net> <20030220.152353.104026134.haro@kgt.co.jp> <15957.11931.949338.673306@ool-18bacefa.dyn.optonline.net> <20030221.100406.41628347.haro@kgt.co.jp> <20030221140725.A63003@phantom.cris.net> <20030221212457.B12703@iclub.nsu.ru>

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

On Fri, Feb 21, 2003 at 09:24:58PM +0600, Max Khon wrote:
> 
> On Fri, Feb 21, 2003 at 02:07:25PM +0200, Alexey Zelkin wrote:
> 
> > Actctually there's only one correct solution:
> > 
> >     4) make jdk 1.3.1 sources use phtread_attr_get_np() function and
> >        get rid inclusion of phtread_private.h at all.
> > 
> > It's done in 1.4.1 port and it's not a problem to provide similar
> > patch for 1.3.1, but pthread_attr_get_np()'s functionality for making
> > jdk truely independent from libc_r API was added to tree around month ago
> > and it means that it's possible to do on most recent -STABLE and post-4.8
> > systems only.
> > 
> > If somebody interesting -- I'll make required patches and port will be
> > updated depending on FreeBSD_version for 4.8 and later versions.
> 
> It is already done for JDK 1.3.1 native threads.
> There is one more place where we need pthread_private.h
> (see my other post in this thread).

This is correct for libhpi case, but wrong for hotspot one.
See hotspot/os/linux/os_linux.cpp for details.

> By the way I think it is better to throw away pthread_attr_get_np()
> before 4.8 release and use pthread_attr_getstack() for getting thread
> stack address and size.

You are mixing issues here.  pthread_attr_get_np() is used to get attribute
of already created and running thread.  pthread_attr_getstack() is supposed
to get individual values of attribute only.  There's no way to associate
pthread_attr_t pointer with already existing attribute, except
pthread_attr_get_np().


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?20030221180237.A64596>