From owner-freebsd-java Fri Feb 21 7:17: 2 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 3071837B401 for ; Fri, 21 Feb 2003 07:17:00 -0800 (PST) Received: from mail.nsu.ru (mx.nsu.ru [193.124.215.71]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9769343F75 for ; Fri, 21 Feb 2003 07:16:55 -0800 (PST) (envelope-from fjoe@iclub.nsu.ru) Received: from drweb by mail.nsu.ru with drweb-scanned (Exim 3.20 #1) id 18mEuH-00063B-00; Fri, 21 Feb 2003 21:16:09 +0600 Received: from iclub.nsu.ru ([193.124.215.97] ident=root) by mail.nsu.ru with esmtp (Exim 3.20 #1) id 18mEuF-00062C-00; Fri, 21 Feb 2003 21:16:07 +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 h1LFFoRV015721; Fri, 21 Feb 2003 21:15:50 +0600 (NS) (envelope-from fjoe@iclub.nsu.ru) Received: (from fjoe@localhost) by iclub.nsu.ru (8.12.6/8.12.6/Submit) id h1LFFjQT015719; Fri, 21 Feb 2003 21:15:45 +0600 (NS) Date: Fri, 21 Feb 2003 21:15:44 +0600 From: Max Khon To: Greg Lewis Cc: Munehiro Matsuda , c.rued@xsb.com, freebsd-java@freebsd.org Subject: Re: jdk13 and WITH_NATIVE_THREADS compile failing Message-ID: <20030221211544.A12703@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> <20030221205625.A28043@misty.eyesbeyond.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20030221205625.A28043@misty.eyesbeyond.com>; from glewis@eyesbeyond.com on Fri, Feb 21, 2003 at 08:56:26PM +1030 X-Spam-Status: No, hits=-3.3 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_01_02, USER_AGENT,USER_AGENT_MUTT version=2.43 X-Envelope-To: glewis@eyesbeyond.com, 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 08:56:26PM +1030, Greg Lewis wrote: > > From: Christopher Rued > > Date: Thu, 20 Feb 2003 14:38:03 -0500 > > :: > ::# /usr/local/jdk1.3.1/bin/java -version > > :: > ::java version "1.3.1-p8" Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-p8-cbr-030219-12:02) Classic VM (build 1.3.1-p8-cbr-030219-12:02, green threads, nojit) > > :: > > > :: > Ok, which means green thread part of JDK is working. > > :: > How about doing the following command? > > :: > > > :: > # java -native -version > > :: > > > :: > If this works, then native thread part of JDK is also working. > > :: > Then that should tell us, whether only hotspot VM part is broken or > > :: > not. > > :: > > ::OK...native threads seem to work: > > :: > > ::# java -version > > ::java version "1.3.1-p8" Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-p8-cbr-030219-12:02) > > ::Classic VM (build 1.3.1-p8-cbr-030219-12:02, native threads, nojit) > > > > Ok, it seems that Hotspot was broken then. > > > > :: > BTW, your were the only one who had the corrupted patch with '^M's. > > :: > I'll send you the original patch in private, so could you retry building > > :: > your JDK with it? > > :: > > :: > > ::Sure thing. I'll try applying the patch that you sent to me, and see > > ::if that changes anything. > > :: > > ::Something that someone (I forget who) on this mailing list said is > > ::also causing me to wonder about another issue: My FreeBSD source tree > > ::(under /usr/src) is not in sync with my compiled system; it's about > > ::two weeks newer. I was under the impression that the source under > > ::/usr/src was never used by any ports (just /usr/include, > > ::/usr/X11R6/include, etc). Should I be worried about my source in > > ::/usr/src being out of sync with my system? Is the source under > > ::/usr/src used in the build? > > > > The only file FreeBSD's JDK patchset tries include from the /usr/src > > is the pthread_private.h file, I think. > > It is not installed by default, so /usr/src becomes a must have. > > That is correct. Previously the pthread library didn't support the > entire API required by HotSpot (and native threads) so we needed to > access the private data. This is bad and hopefully we can remove that > requirement. > > > May be we should, > > 1) change the /usr/src Makefiles to install pthread_private.h to > > /usr/include/sys or somewhere appropriate > > 2) change jdk13 port's Makefile to check the existance for > > pthread_private.h under /usr/include/sys > > 3) if not found, then apply a patch, to make compile process to use > > the pthread_pricate.h from /usr/src > > I think it is better if we look at what we need to do to remove the > necessity of using pthread_private.h. I think we can do that now, > although it will require a recent -STABLE. There is only one piece of code left in threads_bsd.c that needs thread_private.h -- where we need to get thread registers /fjoe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message