From owner-freebsd-threads@FreeBSD.ORG Thu Jun 5 11:24:13 2003 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2A34337B401; Thu, 5 Jun 2003 11:24:13 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7FF8F43F3F; Thu, 5 Jun 2003 11:24:12 -0700 (PDT) (envelope-from eischen@pcnet.com) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mail.pcnet.com (8.12.8/8.12.1) with ESMTP id h55IOBNc022420; Thu, 5 Jun 2003 14:24:11 -0400 (EDT) Date: Thu, 5 Jun 2003 14:24:11 -0400 (EDT) From: Daniel Eischen To: Alexey Zelkin In-Reply-To: <20030605210408.A74144@phantom.cris.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-threads@freebsd.org cc: freebsd-java@freebsd.org Subject: Re: Fwd: Re: Native JDK with libthr/libkse X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jun 2003 18:24:13 -0000 On Thu, 5 Jun 2003, Alexey Zelkin wrote: > On Thu, Jun 05, 2003 at 12:08:52PM -0400, Daniel Eischen wrote: > > I looked at the patches for jdk14 and they include the patches for > > jdk13. The patchset does include pthread_private.h ahd does > > examine internal thread state as well as access registers > > directly from the thread structure. This is not portable across > > thread libraries. > > I'd suggest to take a look again. All required internal information > is now exported to JVM via pthread_attr_get_np(). Since first days > of February of this year. Since both libthr and libpthread support > it -- I don't see any principal reason for jdk14 to not to work with > other thread libs. Absence of deep testing is another issue. OK, I took another look. I guess I had mistakenly looked at the jdk13 patches instead of the jdk14 patches. I did notice one thing: + * BSDNOTE: It's support for fd locking on per thread basis. Since + * FreeBSD libc_r does implement it internally - do nothing here. libc_r does not do fd locking in either -current or -stable. The macros are present, but are disabled by default. You'll need to roll your own. Plus, libkse and libthr won't be doing this either. -- Dan Eischen