From owner-freebsd-java Fri Feb 21 7:25:37 2003 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 9F32437B401 for ; Fri, 21 Feb 2003 07:25:35 -0800 (PST) Received: from mail.nsu.ru (mx.nsu.ru [193.124.215.71]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B9B343F75 for ; Fri, 21 Feb 2003 07:25:34 -0800 (PST) (envelope-from fjoe@iclub.nsu.ru) Received: from drweb by mail.nsu.ru with drweb-scanned (Exim 3.20 #1) id 18mF31-0000Kz-00; Fri, 21 Feb 2003 21:25:11 +0600 Received: from iclub.nsu.ru ([193.124.215.97] ident=root) by mail.nsu.ru with esmtp (Exim 3.20 #1) id 18mF30-0000KI-00; Fri, 21 Feb 2003 21:25:10 +0600 Received: from iclub.nsu.ru (fjoe@localhost [127.0.0.1]) by iclub.nsu.ru (8.12.6/8.12.6) with ESMTP id h1LFP1RV015954; Fri, 21 Feb 2003 21:25:01 +0600 (NS) (envelope-from fjoe@iclub.nsu.ru) Received: (from fjoe@localhost) by iclub.nsu.ru (8.12.6/8.12.6/Submit) id h1LFOwc8015950; Fri, 21 Feb 2003 21:24:58 +0600 (NS) Date: Fri, 21 Feb 2003 21:24:58 +0600 From: Max Khon To: Alexey Zelkin Cc: Munehiro Matsuda , c.rued@xsb.com, freebsd-java@freebsd.org Subject: Re: jdk13 and WITH_NATIVE_THREADS compile failing Message-ID: <20030221212457.B12703@iclub.nsu.ru> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20030221140725.A63003@phantom.cris.net>; from phantom@FreeBSD.org.ua on Fri, Feb 21, 2003 at 02:07:25PM +0200 X-Spam-Status: No, hits=-3.0 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01, USER_AGENT,USER_AGENT_MUTT version=2.43 X-Envelope-To: phantom@FreeBSD.org.ua, haro@kgt.co.jp, c.rued@xsb.com, freebsd-java@freebsd.org 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 hi, there! 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). 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. /fjoe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message