From owner-freebsd-java Tue May 28 9: 3:18 2002 Delivered-To: freebsd-java@freebsd.org Received: from recourse.com (mail.recourse.com [206.171.10.25]) by hub.freebsd.org (Postfix) with ESMTP id 91AB137B407 for ; Tue, 28 May 2002 09:03:13 -0700 (PDT) Received: from recourse.com (localhost [127.0.0.1]) by recourse.com (8.12.1/8.12.1) with ESMTP id g4SG2qNX005841; Tue, 28 May 2002 09:02:52 -0700 (PDT) Received: from localhost (rross@localhost) by recourse.com (8.12.1/8.12.1/Submit) with ESMTP id g4SG2pfs005838; Tue, 28 May 2002 09:02:52 -0700 (PDT) Date: Tue, 28 May 2002 09:02:51 -0700 (PDT) From: "Robert F. Ross" X-Sender: rross@recourse.com To: Greg Lewis Cc: Ari Suutari , freebsd-java@FreeBSD.ORG Subject: Re: JDK 1.3.1, FreeBSD 4.5, JNI and select() In-Reply-To: <20020529001340.B47941@misty.eyesbeyond.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 The 1.2.2 JVM isn't happy running the jar file I have. It's definitely a problem that I'm seeing with the 1.3.1 JDK as the subject said. Robert Ross Senior Software Engineer Recourse Technologies, Inc. On Wed, 29 May 2002, Greg Lewis wrote: > On Mon, May 27, 2002 at 09:26:38AM +0300, Ari Suutari wrote: > > On Sunday 26 May 2002 18:58, Greg Lewis wrote: > > > Not having tried to do this I haven't seen this issue. The Java Comm API > > > uses this select() in JNI code and seems to work ok, however I'm not > > > sure of the details. It might be worth looking at the code for it > > > (its in the PR system to be committed as a port if it hasn't been > > > already). > > > > Java Comm API used select in jdk 1.1.8 days, but I have > > changed it to use poll because of similar problems. If I remember > > correctly, there are wrappers in green_threads package for > > various syscalls. There is a wrapper for "poll", but there is > > no wrapper for "select" which breaks threading when it > > is called by JNI code. > > You should find that this isn't a problem for 1.3.1 (it was for 1.2.2). > That is, you should be able to use select() without any problems. > > -- > Greg Lewis Email : glewis@eyesbeyond.com > Eyes Beyond Web : http://www.eyesbeyond.com > Information Technology > > > 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-java" in the body of the message