From owner-freebsd-java Mon Feb 26 0:58: 4 2001 Delivered-To: freebsd-java@freebsd.org Received: from gnuppy.monkey.org (cx739861-a.dt1.sdca.home.com [24.5.164.61]) by hub.freebsd.org (Postfix) with ESMTP id 140CB37B4EC for ; Mon, 26 Feb 2001 00:58:02 -0800 (PST) (envelope-from billh@gnuppy.monkey.org) Received: from billh by gnuppy.monkey.org with local (Exim 3.22 #1 (Debian)) id 14XJTa-00018E-00; Mon, 26 Feb 2001 00:57:50 -0800 Date: Mon, 26 Feb 2001 00:57:50 -0800 To: David Xu Cc: Bill Huey , Zsolt Kuti , freebsd-java@freebsd.org Subject: Re: Hello from BSDi's BSD/OS division ;) Message-ID: <20010226005750.A4340@gnuppy> References: <3A96177A.79D89B88@cetelem.hu> <20010223005304.A5179@gnuppy> <1730344963.20010226165924@163.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.15i In-Reply-To: <1730344963.20010226165924@163.net>; from bsddiy@163.net on Mon, Feb 26, 2001 at 04:59:24PM +0800 From: Bill Huey Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon, Feb 26, 2001 at 04:59:24PM +0800, David Xu wrote: > Hello Bill, > > does it include JIT? without JIT, java is just a CPU pig. > > Regards, > David Xu No JIT just yet. I've got to take this one step at a time and I've only been porting this thing since the beginning of November of last year. ;-) I'm still working on getting the entire thing fully compiled, but fortunately it seems as if I'm done with all the really hard parts now. It's been a suprisingly difficult project overall, but I'd expect to have to do a port of HotSpot and other JITs included with the standard Sun JVM along the way. ;-) bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Feb 26 1:45:15 2001 Delivered-To: freebsd-java@freebsd.org Received: from areilly.bpc-users.org (CPE-144-132-234-126.nsw.bigpond.net.au [144.132.234.126]) by hub.freebsd.org (Postfix) with SMTP id C175637B401 for ; Mon, 26 Feb 2001 01:45:11 -0800 (PST) (envelope-from areilly@bigpond.net.au) Received: (qmail 23285 invoked by uid 1000); 26 Feb 2001 09:45:10 -0000 From: "Andrew Reilly" Date: Mon, 26 Feb 2001 20:45:10 +1100 To: Bill Huey Cc: David Xu , Zsolt Kuti , freebsd-java@FreeBSD.ORG Subject: Re: Hello from BSDi's BSD/OS division ;) Message-ID: <20010226204510.A23200@gurney.reilly.home> References: <3A96177A.79D89B88@cetelem.hu> <20010223005304.A5179@gnuppy> <1730344963.20010226165924@163.net> <20010226005750.A4340@gnuppy> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010226005750.A4340@gnuppy>; from billh@gnuppy.monkey.org on Mon, Feb 26, 2001 at 12:57:50AM -0800 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon, Feb 26, 2001 at 12:57:50AM -0800, Bill Huey wrote: > It's been a suprisingly difficult project overall, but I'd expect > to have to do a port of HotSpot and other JITs included with > the standard Sun JVM along the way. If it's not violating any NDAs, could you give a quick summary for the peanut gallery about _why_ porting the Sun JVM to *BSD is difficult? The Sun propaganda had led me to believe that the JVM was a small, simple thing that even a tiny embedded controller could support. Is it just really badly written? Or is it hard to make the Sun garbage collector deal with BSD VM? Or are the BSD pthreads implementations somehow inadequate? Or is there porting work in the standard java libraries, (which I understand are quite large) as well as in the JVM itself? Sorry for being intrusive. I've just been impressed over the last couple of years at how gaping the gap between Sun's "Java everywhere" rhetoric and the observable fact that Java wasn't actually anywhere that I cared to be... -- Andrew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Feb 26 2:34: 8 2001 Delivered-To: freebsd-java@freebsd.org Received: from gnuppy.monkey.org (cx739861-a.dt1.sdca.home.com [24.5.164.61]) by hub.freebsd.org (Postfix) with ESMTP id F15DA37B401 for ; Mon, 26 Feb 2001 02:34:04 -0800 (PST) (envelope-from billh@gnuppy.monkey.org) Received: from billh by gnuppy.monkey.org with local (Exim 3.22 #1 (Debian)) id 14XKyP-0001kH-00; Mon, 26 Feb 2001 02:33:45 -0800 Date: Mon, 26 Feb 2001 02:33:45 -0800 To: freebsd-java@freebsd.org Cc: Andrew Reilly , David Xu , Zsolt Kuti , freebsd-java@FreeBSD.ORG Subject: Virtual Machines. Message-ID: <20010226023345.A6701@gnuppy> References: <20010226204510.A23200@gurney.reilly.home> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.15i In-Reply-To: ; from billh@gnuppy.monkey.org on Mon, Feb 26, 2001 at 01:57:10AM -0800 From: Bill Huey Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org "elm" seems to be on crack, so I'm forwarding this again. ;-) -------------------- > If it's not violating any NDAs, could you give a quick summary > for the peanut gallery about _why_ porting the Sun JVM to *BSD > is difficult? The Sun propaganda had led me to believe that > the JVM was a small, simple thing that even a tiny embedded > controller could support. Na, it's a virtual machine, so you can take examples from many language systems, python's VM in particular and talk about those issues generically. > Is it just really badly written? Well, the folks that have to port the thing whine all day along about it, but it doesn't mean that it's poorly written. > Or is it hard to make the Sun garbage collector deal with BSD > VM? > Or are the BSD pthreads implementations somehow inadequate? No, that stuff is ok. > Or is there porting work in the standard java libraries, (which > I understand are quite large) as well as in the JVM itself? Yes, that and the threading stuff. Virtual machine themselves are very complicated with many of the typical problems associated with complicate threading systems. The JVM and other VMs pretty much touch everything in Unix from the compiler tools chains, posix threading, async IO, networking, language runtimes that are associated with the per thread stack stuff and you have to have C glue code that formally deals with all of that in some coherent manner. ...add stuff like C based method invocation at runtime, class reflection, etc... and you've got a serious mess. > Sorry for being intrusive. I've just been impressed over the > last couple of years at how gaping the gap between Sun's "Java > everywhere" rhetoric and the observable fact that Java wasn't > actually anywhere that I cared to be... I can't comment on that since I don't know anything about the embedded stuff that they're doing, but I would think that it vary greatly one the libraries/compiler that you're using in that specific system. > Andrew bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Feb 26 13:53:51 2001 Delivered-To: freebsd-java@freebsd.org Received: from ns.yogotech.com (ns.yogotech.com [206.127.123.66]) by hub.freebsd.org (Postfix) with ESMTP id C7FCA37B503 for ; Mon, 26 Feb 2001 13:53:45 -0800 (PST) (envelope-from nate@yogotech.com) Received: from nomad.yogotech.com (nomad.yogotech.com [206.127.123.131]) by ns.yogotech.com (8.9.3/8.9.3) with ESMTP id OAA04591; Mon, 26 Feb 2001 14:53:43 -0700 (MST) (envelope-from nate@nomad.yogotech.com) Received: (from nate@localhost) by nomad.yogotech.com (8.8.8/8.8.8) id OAA27138; Mon, 26 Feb 2001 14:53:38 -0700 (MST) (envelope-from nate) From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15002.53346.49594.311469@nomad.yogotech.com> Date: Mon, 26 Feb 2001 14:53:38 -0700 (MST) To: Jun Kuriyama Cc: Nate Williams , java@FreeBSD.ORG Subject: Re: JDK1.1.8 'primary' mirror needed In-Reply-To: <7m3dd55vdd.wl@waterblue.imgsrc.co.jp> References: <14996.8114.725540.108609@nomad.yogotech.com> <20010222003752.A84823@c187104187.telekabel.chello.nl> <20010222121120.A87208@c187104187.telekabel.chello.nl> <14997.19066.341442.130723@nomad.yogotech.com> <7m3dd55vdd.wl@waterblue.imgsrc.co.jp> X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Reply-To: nate@yogotech.com (Nate Williams) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > It was originally on freebsd.org, but the WWW-meister asked me to move > > it off due to too much load. > > Hmmm, you are saying ~/public_html on freefall, aren't you? That will > effect to web server's load, but ~/public_distfiles is no relation > with web server on freefall. > > Files in ~/public_distfiles on freefall will be copied to > ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/nate/. > And local-distfiles directory will be mirrored to FreeBSD mirrors all > over the world. It seems this is best place to distribute files like > yours. Cool, I like this the best. I've got the files in place, but I don't know the best way to specific it in the jdk/java/Makefile. I don't want to hard-code the address: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/nate/JDK1.1/ but, when I tried: > ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/nate/. ${MASTER_SITE_LOCAL}/nate/JDK1.1/ It didn't look in the nate/JDK1.1 subdirectory. Any ideas? Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Feb 26 14:21: 4 2001 Delivered-To: freebsd-java@freebsd.org Received: from ns.yogotech.com (ns.yogotech.com [206.127.123.66]) by hub.freebsd.org (Postfix) with ESMTP id D9F0B37B4EC for ; Mon, 26 Feb 2001 14:20:59 -0800 (PST) (envelope-from nate@yogotech.com) Received: from nomad.yogotech.com (nomad.yogotech.com [206.127.123.131]) by ns.yogotech.com (8.9.3/8.9.3) with ESMTP id PAA05142 for ; Mon, 26 Feb 2001 15:20:58 -0700 (MST) (envelope-from nate@nomad.yogotech.com) Received: (from nate@localhost) by nomad.yogotech.com (8.8.8/8.8.8) id PAA27539; Mon, 26 Feb 2001 15:20:57 -0700 (MST) (envelope-from nate) From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15002.54985.443255.939228@nomad.yogotech.com> Date: Mon, 26 Feb 2001 15:20:57 -0700 (MST) To: java@FreeBSD.ORG Subject: JDK1.1.8 mirror no longer necessary ( was Re: JDK1.1.8 'primary' mirror needed) In-Reply-To: <20010222003752.A84823@c187104187.telekabel.chello.nl> References: <14996.8114.725540.108609@nomad.yogotech.com> <20010222003752.A84823@c187104187.telekabel.chello.nl> X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Reply-To: nate@yogotech.com (Nate Williams) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Thanks to everyone who offered. However, Jun Kuriyama pointed out that the FreeBSD project has infrastructure in place for this already. I followed his advice, and updated the port to get things from ftp*.freebsd.org sites. Thanks to all who offered. When we get JDK1.2 stuff all sorted out, I may call for volunteers to help spread the load out then. Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Feb 26 14:53:38 2001 Delivered-To: freebsd-java@freebsd.org Received: from white.imgsrc.co.jp (ns.imgsrc.co.jp [210.226.20.2]) by hub.freebsd.org (Postfix) with ESMTP id 2F79137B4EC for ; Mon, 26 Feb 2001 14:53:36 -0800 (PST) (envelope-from kuriyama@imgsrc.co.jp) Received: from waterblue.imgsrc.co.jp (waterblue.imgsrc.co.jp [210.226.20.160]) by white.imgsrc.co.jp (8.11.2/8.11.0) with ESMTP id f1QMrLT89976; Tue, 27 Feb 2001 07:53:22 +0900 (JST) Date: Tue, 27 Feb 2001 07:53:20 +0900 Message-ID: <7mu25h2h0f.wl@waterblue.imgsrc.co.jp> From: Jun Kuriyama To: Nate Williams Cc: java@FreeBSD.ORG Subject: Re: JDK1.1.8 'primary' mirror needed In-Reply-To: <15002.53346.49594.311469@nomad.yogotech.com> References: <14996.8114.725540.108609@nomad.yogotech.com> <20010222003752.A84823@c187104187.telekabel.chello.nl> <20010222121120.A87208@c187104187.telekabel.chello.nl> <14997.19066.341442.130723@nomad.yogotech.com> <7m3dd55vdd.wl@waterblue.imgsrc.co.jp> <15002.53346.49594.311469@nomad.yogotech.com> User-Agent: Wanderlust/2.4.0 (Rio) SEMI/1.13.7 (Awazu) FLIM/1.13.2 (Kasanui) MULE XEmacs/21.1 (patch 14) (Cuyahoga Valley) (i386--freebsd) MIME-Version: 1.0 (generated by SEMI 1.13.7 - "Awazu") Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org At 26 Feb 2001 21:53:55 GMT, Nate Williams wrote: > I don't want to hard-code the address: > ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/nate/JDK1.1/ > > but, when I tried: > > > ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/nate/. > ${MASTER_SITE_LOCAL}/nate/JDK1.1/ How about this: MASTER_SITES= ${MASTER_SITE_LOCAL} MASTER_SITE_SUBDIR= nate/JDK1.1 -- Jun Kuriyama // IMG SRC, Inc. // FreeBSD Project To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Feb 26 15: 2: 9 2001 Delivered-To: freebsd-java@freebsd.org Received: from ns.yogotech.com (ns.yogotech.com [206.127.123.66]) by hub.freebsd.org (Postfix) with ESMTP id 8C76337B4EC for ; Mon, 26 Feb 2001 15:02:04 -0800 (PST) (envelope-from nate@yogotech.com) Received: from nomad.yogotech.com (nomad.yogotech.com [206.127.123.131]) by ns.yogotech.com (8.9.3/8.9.3) with ESMTP id QAA05951; Mon, 26 Feb 2001 16:02:01 -0700 (MST) (envelope-from nate@nomad.yogotech.com) Received: (from nate@localhost) by nomad.yogotech.com (8.8.8/8.8.8) id QAA27847; Mon, 26 Feb 2001 16:02:00 -0700 (MST) (envelope-from nate) From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15002.57448.677324.804895@nomad.yogotech.com> Date: Mon, 26 Feb 2001 16:02:00 -0700 (MST) To: Jun Kuriyama Cc: Nate Williams , java@FreeBSD.ORG Subject: Re: JDK1.1.8 'primary' mirror needed In-Reply-To: <7mu25h2h0f.wl@waterblue.imgsrc.co.jp> References: <14996.8114.725540.108609@nomad.yogotech.com> <20010222003752.A84823@c187104187.telekabel.chello.nl> <20010222121120.A87208@c187104187.telekabel.chello.nl> <14997.19066.341442.130723@nomad.yogotech.com> <7m3dd55vdd.wl@waterblue.imgsrc.co.jp> <15002.53346.49594.311469@nomad.yogotech.com> <7mu25h2h0f.wl@waterblue.imgsrc.co.jp> X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Reply-To: nate@yogotech.com (Nate Williams) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > I don't want to hard-code the address: > > ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/nate/JDK1.1/ > > > > but, when I tried: > > > > > ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/nate/. > > ${MASTER_SITE_LOCAL}/nate/JDK1.1/ > > How about this: > > MASTER_SITES= ${MASTER_SITE_LOCAL} > MASTER_SITE_SUBDIR= nate/JDK1.1 I grep'd through some other port Makefiles and got it. Thanks! Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Feb 26 15:36: 6 2001 Delivered-To: freebsd-java@freebsd.org Received: from cypherpunks.ai (cypherpunks.ai [209.88.68.47]) by hub.freebsd.org (Postfix) with ESMTP id DF66937B491 for ; Mon, 26 Feb 2001 15:36:02 -0800 (PST) (envelope-from jeroen@vangelderen.org) Received: from vangelderen.org (grolsch.ai [209.88.68.214]) by cypherpunks.ai (Postfix) with ESMTP id D390149 for ; Mon, 26 Feb 2001 19:35:59 -0400 (AST) Message-ID: <3A9AE85F.C6F06D96@vangelderen.org> Date: Mon, 26 Feb 2001 19:35:59 -0400 From: "Jeroen C. van Gelderen" X-Mailer: Mozilla 4.73 [en] (X11; I; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: FreeBSD Java Subject: Are syscall wrappers needed in JNI? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, I'm currently working on some native code libraries for our very own FreeBSD JDK 1.2. Sun of course provides near zero documentation for JNI and especially no documentation regarding native code interaction with the threading model so this is a less than pleasant experience... My JNI library uses sockets and reads and writes on those things. I'm left wondering how one actually properly calls these libc functions in the face of the JVM threading model. I had a look at the FreeBSD CommAPI implementation. It seems to just mark it's filedescriptors as O_NONBLOCK and uses the plain system calls from then on. The native code backing java.net.SocketImpl on the other hand wraps all it's calls with an INTERRUPT_IO macro[1] which seems to be neccessary for correct operation of the JVM threads. None of the above two options seems to be documented but the java.net approach is not really feasible without calling private and undocumented JVM functions. So... I'm hoping that someone here has the magic knowledge in his/her brain... How does one properly use libc from within Java? TIA, Jeroen [1] It is an indirect call to JVM_Listen which calls sysListen which is defined as INTERRUPT_IO(int, listen(fd, count)) in freebsd/hpi/green_threads/src/sys_api_td.c. -- Jeroen C. van Gelderen - jeroen@vangelderen.org "If I could save the Union without freeing any slave I would do it; and if I could save it by freeing some and leaving others alone I would also do that." -- Abraham Lincoln, August 22, 1862 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Feb 26 15:46: 1 2001 Delivered-To: freebsd-java@freebsd.org Received: from ns.yogotech.com (ns.yogotech.com [206.127.123.66]) by hub.freebsd.org (Postfix) with ESMTP id 2C98537B401 for ; Mon, 26 Feb 2001 15:45:59 -0800 (PST) (envelope-from nate@yogotech.com) Received: from nomad.yogotech.com (nomad.yogotech.com [206.127.123.131]) by ns.yogotech.com (8.9.3/8.9.3) with ESMTP id QAA06715; Mon, 26 Feb 2001 16:45:57 -0700 (MST) (envelope-from nate@nomad.yogotech.com) Received: (from nate@localhost) by nomad.yogotech.com (8.8.8/8.8.8) id QAA28040; Mon, 26 Feb 2001 16:45:56 -0700 (MST) (envelope-from nate) From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15002.60084.89087.467979@nomad.yogotech.com> Date: Mon, 26 Feb 2001 16:45:56 -0700 (MST) To: "Jeroen C. van Gelderen" Cc: FreeBSD Java Subject: Re: Are syscall wrappers needed in JNI? In-Reply-To: <3A9AE85F.C6F06D96@vangelderen.org> References: <3A9AE85F.C6F06D96@vangelderen.org> X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Reply-To: nate@yogotech.com (Nate Williams) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > So... I'm hoping that someone here has the magic knowledge in > his/her brain... How does one properly use libc from within Java? You can't in the current JDK1.1 stuff. Once we get the JDK1.X stuff ported to use pthreads, you'll be able to use libc. Don't plan on seeing before FreeBSD 5.X and JDK1.3. Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Feb 28 0:45:51 2001 Delivered-To: freebsd-java@freebsd.org Received: from mirriwinni.cse.rmit.edu.au (pm.cse.rmit.edu.au [131.170.118.50]) by hub.freebsd.org (Postfix) with ESMTP id CDD6637B719 for ; Wed, 28 Feb 2001 00:45:47 -0800 (PST) (envelope-from peter@mirriwinni.cse.rmit.edu.au) Received: (from peter@localhost) by mirriwinni.cse.rmit.edu.au (8.11.1/8.11.1) id f1S8jkC58251 for freebsd-java@freebsd.org; Wed, 28 Feb 2001 19:45:46 +1100 (EST) (envelope-from peter) Date: Wed, 28 Feb 2001 19:45:46 +1100 From: Peter Eccles To: freebsd-java@freebsd.org Subject: current commmapi native drivers Message-ID: <20010228194546.A58208@mirriwinni.cse.rmit.edu.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, i've been trying to find a working version of the commapi serial driver. i've tried the rxtx driver which does not seem to be too concerned with FreeBSD, (although some efforts have been made), and the only other resource I found on the net seems quite old. (http://student.ulb.ac.be/~jdricot/commapi/) Ive seen messages on this list about patches, but haven't found any references to where they might be found. Is there any active development on FreeBSD friendly native drivers? Thanks, Peter. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Feb 28 1:33:45 2001 Delivered-To: freebsd-java@freebsd.org Received: from osku.suutari.iki.fi (osku.syncrontech.com [213.28.98.4]) by hub.freebsd.org (Postfix) with ESMTP id C1CD137B718 for ; Wed, 28 Feb 2001 01:33:40 -0800 (PST) (envelope-from ari@suutari.iki.fi) Received: from coffee (adsl-nat.syncrontech.com [213.28.98.3]) by osku.suutari.iki.fi (8.9.3/8.9.3) with SMTP id LAA19138; Wed, 28 Feb 2001 11:33:30 +0200 (EET) (envelope-from ari@suutari.iki.fi) Message-ID: <031e01c0a169$72cd7780$0e05a8c0@coffee> From: "Ari Suutari" To: "Peter Eccles" , References: <20010228194546.A58208@mirriwinni.cse.rmit.edu.au> Subject: Re: current commmapi native drivers Date: Wed, 28 Feb 2001 11:33:02 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, > > i've been trying to find a working version of the commapi serial > driver. i've tried the rxtx driver which does not seem to be too > concerned with FreeBSD, (although some efforts have been made), and the > only other resource I found on the net seems quite old. > (http://student.ulb.ac.be/~jdricot/commapi/) > > Ive seen messages on this list about patches, but haven't found any > references to where they might be found. > > Is there any active development on FreeBSD friendly native drivers? > I have been using the commapi serial driver from URL you mention. I had some problems with native jdk1.2.2, because the JNI part uses select(2), which was not wrapped by JVM that time (maybe is now, I haven't checked). Anyway, I altered the driver so that it uses poll(2) instead of select. I have been using it to talk to Dallas Semiconductor's temperature sensors and weather station for some months without any problems. I can make those patches available but I don't currently remember on which of my machines I have them. I also exchanged some mail with the author of that code and he told me that he is no longer actively maintaining it since he was no longer using FreeBSD. Maybe someone could provide a new home for this and continue it's development. I myself might be able to help on serial interface since I have long experience with termios programming but I don't know anything about paraller port. I don't know if there are any legal issues on developing comm drivers like there is the SCSL license for JDK ? Ari S. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Feb 28 9:49:35 2001 Delivered-To: freebsd-java@freebsd.org Received: from ntua.gr (achilles.noc.ntua.gr [147.102.222.210]) by hub.freebsd.org (Postfix) with ESMTP id 9BC7137B71B for ; Wed, 28 Feb 2001 09:49:30 -0800 (PST) (envelope-from past@edgar.netmode.ece.ntua.gr) Received: from netmode.ntua.gr (dolly.netmode.ece.ntua.gr [147.102.13.10]) by ntua.gr (8.9.3/8.9.3) with ESMTP id TAA13427; Wed, 28 Feb 2001 19:49:11 +0200 (EET) Received: from edgar.netmode.ece.ntua.gr (edgar.netmode.ece.ntua.gr [147.102.13.70]) by netmode.ntua.gr (8.11.1/8.11.1) with ESMTP id f1SHvLD41622; Wed, 28 Feb 2001 19:57:21 +0200 (EET) (envelope-from past@edgar.netmode.ece.ntua.gr) Received: (from past@localhost) by edgar.netmode.ece.ntua.gr (8.11.2/8.11.2) id f1SHnli01652; Wed, 28 Feb 2001 19:49:47 +0200 (EET) (envelope-from past) Date: Wed, 28 Feb 2001 19:49:46 +0200 From: Panagiotis Astithas To: Ari Suutari Cc: Peter Eccles , freebsd-java@FreeBSD.ORG Subject: Re: current commmapi native drivers Message-ID: <20010228194945.B1551@netmode.ece.ntua.gr> Reply-To: past@netmode.ntua.gr Mail-Followup-To: Ari Suutari , Peter Eccles , freebsd-java@FreeBSD.ORG References: <20010228194546.A58208@mirriwinni.cse.rmit.edu.au> <031e01c0a169$72cd7780$0e05a8c0@coffee> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <031e01c0a169$72cd7780$0e05a8c0@coffee>; from ari@suutari.iki.fi on Wed, Feb 28, 2001 at 11:33:02AM +0200 X-Organizational-Unit: Network Management and Optimal Design Laboratory X-Organization: National Technical University of Athens, GREECE X-Work-Phone: +30-1-772-1-450 X-Work-FAX: +30-1-772-1-452 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, Feb 28, 2001 at 11:33:02AM +0200, Ari Suutari wrote: > I don't know if there are any legal issues on developing > comm drivers like there is the SCSL license for JDK ? Nah, Sun doesn't distribute the source to the comm API, since (as we can see in the FAQ) people have been able to provide comm drivers without having access to the source. So they can't request conformance to the SCSL, but if you want to distribute the upper layer comm classes, the usual binary license applies. -past To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Feb 28 20:14:27 2001 Delivered-To: freebsd-java@freebsd.org Received: from bom1.vsnl.net.in (giasbm01.vsnl.net.in [202.54.1.18]) by hub.freebsd.org (Postfix) with ESMTP id 9886B37B718 for ; Wed, 28 Feb 2001 20:14:25 -0800 (PST) (envelope-from klak@giasbm01.vsnl.net.in) Received: from home.this-is-not-a-domain.in (unknown [61.1.242.65]) by bom1.vsnl.net.in (Postfix) with ESMTP id 20D77D3F9; Thu, 1 Mar 2001 09:44:21 +0530 (IST) Received: (from kal@localhost) by home.this-is-not-a-domain.in (8.9.3/8.9.3) id JAA00536; Thu, 1 Mar 2001 09:40:54 +0530 (IST) (envelope-from klak@giasbm01.vsnl.net.in) Date: Thu, 1 Mar 2001 09:40:54 +0530 (IST) Message-Id: <200103010410.JAA00536@home.this-is-not-a-domain.in> X-Authentication-Warning: home.this-is-not-a-domain.in: kal set sender to klak@giasbm01.vsnl.net.in using -f From: "Khuzaima A. Lakdawala" To: peter@mirriwinni.cse.rmit.edu.au Cc: freebsd-java@freebsd.org In-reply-to: <20010228194546.A58208@mirriwinni.cse.rmit.edu.au> (message from Peter Eccles on Wed, 28 Feb 2001 19:45:46 +1100) Subject: Re: current commmapi native drivers References: <20010228194546.A58208@mirriwinni.cse.rmit.edu.au> User-Agent: WEMI/1.13.7 (Shimada) FLIM/1.13.2 (Kasanui) Emacs/20.6 (i386--freebsd) MULE/4.0 (HANANOEN) MIME-Version: 1.0 (generated by WEMI 1.13.7 - "Shimada") Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Hi, > > i've been trying to find a working version of the commapi serial > driver. i've tried the rxtx driver which does not seem to be too > concerned with FreeBSD, (although some efforts have been made), and the > only other resource I found on the net seems quite old. > (http://student.ulb.ac.be/~jdricot/commapi/) > > Ive seen messages on this list about patches, but haven't found any > references to where they might be found. > > Is there any active development on FreeBSD friendly native drivers? There is a non-Free solution avilable at www.serialio.com. Khuzaima To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Mar 1 17:28: 9 2001 Delivered-To: freebsd-java@freebsd.org Received: from cypherpunks.ai (cypherpunks.ai [209.88.68.47]) by hub.freebsd.org (Postfix) with ESMTP id DFDFD37B719 for ; Thu, 1 Mar 2001 17:28:05 -0800 (PST) (envelope-from jeroen@vangelderen.org) Received: from vangelderen.org (grolsch.ai [209.88.68.214]) by cypherpunks.ai (Postfix) with ESMTP id 7BA8F9; Thu, 1 Mar 2001 21:27:59 -0400 (AST) Message-ID: <3A9EF71F.A13189C6@vangelderen.org> Date: Thu, 01 Mar 2001 21:27:59 -0400 From: "Jeroen C. van Gelderen" X-Mailer: Mozilla 4.73 [en] (X11; I; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Nate Williams Cc: FreeBSD Java , Ari Suutari Subject: Re: Are syscall wrappers needed in JNI? References: <3A9AE85F.C6F06D96@vangelderen.org> <15002.60084.89087.467979@nomad.yogotech.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, Sorry for the delay in response but I've been busy hacking JNI :-( Nate Williams wrote: > > > So... I'm hoping that someone here has the magic knowledge in > > his/her brain... How does one properly use libc from within Java? > > You can't in the current JDK1.1 stuff. I take it you meant to say JDK 1.2 beta as well? Or not? Ari Suutari mailed me this reply (fwd with permission): ------------------------------------------------ Jeroen C. van Gelderen wrote: > I had a look at the FreeBSD CommAPI implementation. It seems > to just mark it's filedescriptors as O_NONBLOCK and uses the > plain system calls from then on. > I think this is because the .so is dynamically loaded into JVM, which contains necessary wrappers, ie. "poll" isn't the actual system call in this environment, it is the wrapper that does all kinds of things before doing "poll". This is the case at least for JDK 1.2.2. I did some research on this one because the FreeBSD comm api used "select", for which there wasn't a wrapper at some time (don't know about the current situation). This caused the JVM to hang in weird way sometimes. I replaced "select" with "poll", which had a wrapper inside JVM and everything worked very well after that. Ari S. ------------------------------------------------ Your statement and his seem to contradict each other. Could either of you clarify matters here? Cheers, Jeroen -- Jeroen C. van Gelderen - jeroen@vangelderen.org "If I could save the Union without freeing any slave I would do it; and if I could save it by freeing some and leaving others alone I would also do that." -- Abraham Lincoln, August 22, 1862 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Mar 1 17:33:59 2001 Delivered-To: freebsd-java@freebsd.org Received: from ns.yogotech.com (ns.yogotech.com [206.127.123.66]) by hub.freebsd.org (Postfix) with ESMTP id BC95937B719 for ; Thu, 1 Mar 2001 17:33:56 -0800 (PST) (envelope-from nate@yogotech.com) Received: from nomad.yogotech.com (nomad.yogotech.com [206.127.123.131]) by ns.yogotech.com (8.9.3/8.9.3) with ESMTP id SAA18380; Thu, 1 Mar 2001 18:33:54 -0700 (MST) (envelope-from nate@nomad.yogotech.com) Received: (from nate@localhost) by nomad.yogotech.com (8.8.8/8.8.8) id SAA24312; Thu, 1 Mar 2001 18:33:53 -0700 (MST) (envelope-from nate) From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15006.63617.145790.5705@nomad.yogotech.com> Date: Thu, 1 Mar 2001 18:33:53 -0700 (MST) To: "Jeroen C. van Gelderen" Cc: Nate Williams , FreeBSD Java , Ari Suutari Subject: Re: Are syscall wrappers needed in JNI? In-Reply-To: <3A9EF71F.A13189C6@vangelderen.org> References: <3A9AE85F.C6F06D96@vangelderen.org> <15002.60084.89087.467979@nomad.yogotech.com> <3A9EF71F.A13189C6@vangelderen.org> X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Reply-To: nate@yogotech.com (Nate Williams) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Sorry for the delay in response but I've been busy hacking > JNI :-( > > Nate Williams wrote: > > > > > So... I'm hoping that someone here has the magic knowledge in > > > his/her brain... How does one properly use libc from within Java? > > > > You can't in the current JDK1.1 stuff. > > I take it you meant to say JDK 1.2 beta as well? Or not? Since it also uses green threads, then it has the same limitations. > Ari Suutari mailed me this reply (fwd with permission): > > ------------------------------------------------ > Jeroen C. van Gelderen wrote: > > I had a look at the FreeBSD CommAPI implementation. It seems > > to just mark it's filedescriptors as O_NONBLOCK and uses the > > plain system calls from then on. > > > > I think this is because the .so is dynamically loaded into > JVM, which contains necessary wrappers, ie. "poll" isn't > the actual system call in this environment, it is the wrapper > that does all kinds of things before doing "poll". > > This is the case at least for JDK 1.2.2. I did some research > on this one because the FreeBSD comm api used "select", for > which there wasn't a wrapper at some time (don't know about > the current situation). This caused the JVM to hang in weird > way sometimes. I replaced "select" with "poll", which had > a wrapper inside JVM and everything worked very well after that. > > Ari S. > ------------------------------------------------ > > Your statement and his seem to contradict each other. Could > either of you clarify matters here? Interesting enough, from my memory, select is wrapped in the JVM, but poll was not. My suspicion is that the wrapping was causing problems, and his modification to use 'poll' caused it to call the native poll, instead of the wrapped 'select' version, which can cause problems. Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Mar 1 18:11:52 2001 Delivered-To: freebsd-java@freebsd.org Received: from cypherpunks.ai (cypherpunks.ai [209.88.68.47]) by hub.freebsd.org (Postfix) with ESMTP id D759437B719 for ; Thu, 1 Mar 2001 18:11:39 -0800 (PST) (envelope-from jeroen@vangelderen.org) Received: from vangelderen.org (grolsch.ai [209.88.68.214]) by cypherpunks.ai (Postfix) with ESMTP id 36253A; Thu, 1 Mar 2001 22:11:38 -0400 (AST) Message-ID: <3A9F015A.CE487843@vangelderen.org> Date: Thu, 01 Mar 2001 22:11:38 -0400 From: "Jeroen C. van Gelderen" X-Mailer: Mozilla 4.73 [en] (X11; I; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Nate Williams Cc: FreeBSD Java , Ari Suutari Subject: Re: Are syscall wrappers needed in JNI? References: <3A9AE85F.C6F06D96@vangelderen.org> <15002.60084.89087.467979@nomad.yogotech.com> <3A9EF71F.A13189C6@vangelderen.org> <15006.63617.145790.5705@nomad.yogotech.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Man, thanks for those instant responses! :-) Nate Williams wrote: > > > Sorry for the delay in response but I've been busy hacking > > JNI :-( > > > > Nate Williams wrote: > > > > > > > So... I'm hoping that someone here has the magic knowledge in > > > > his/her brain... How does one properly use libc from within Java? > > > > > > You can't in the current JDK1.1 stuff. > > > > I take it you meant to say JDK 1.2 beta as well? Or not? > > Since it also uses green threads, then it has the same limitations. Allright, that's what I assumed... What I don't understand is that Ari says it can actually work whereas you seem to indicate that calling libc functions cannot be done until we get pthreads going... Are the two of you perhaps saying that one can call only those libc functions that are also used by the JDK and therefore exported from libhpi.so in wrapped form? (This interpretation seems to agree with an nm libhpi.so in that nm reveals an export for poll but not one for select which would explain Ari's problems using poll.) If the answer is yes I am happy because it means that my UNIX domain socket project is feasible because all the calls I need for UNIX socket support are already used by the JVM for it's java.net.(Server)Socket implemtation (read/write/accept/...). In any case I think I have found a safe approach that involves calling the various JVM_* functions in libjava.so on the assumption that those are simple wrappers for the actual syscalls. Calling JVM_* functions has the advantage that one's program will not silently call libc functions directly when a wrapped version is not available. I.e. calling JVM_Bind will fail to link becayse JVM_Bind doesn't exist but calling plain bind would silently link to the libc version and maybe cause problems later on. (This is just an example, bind actually is safe to call directly, see next paragraph.) At any rate, it seems that wrappers are only neccessary for those syscalls that can block. The bind call for example is safe without a wrapper (as evidenced by the java.net JNI implementation). [...] > Interesting enough, from my memory, select is wrapped in the JVM, but > poll was not. My suspicion is that the wrapping was causing problems, > and his modification to use 'poll' caused it to call the native poll, > instead of the wrapped 'select' version, which can cause problems. The other way around. He called select which failed but everything was fine after he switched to using poll which is wrapped in the current JDK. Cheers, Jeroen PS. The code in question will be released when finished btw. -- Jeroen C. van Gelderen - jeroen@vangelderen.org "If I could save the Union without freeing any slave I would do it; and if I could save it by freeing some and leaving others alone I would also do that." -- Abraham Lincoln, August 22, 1862 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Mar 1 20: 6:42 2001 Delivered-To: freebsd-java@freebsd.org Received: from ns.yogotech.com (ns.yogotech.com [206.127.123.66]) by hub.freebsd.org (Postfix) with ESMTP id 8E82737B71A for ; Thu, 1 Mar 2001 20:06:39 -0800 (PST) (envelope-from nate@yogotech.com) Received: from nomad.yogotech.com (nomad.yogotech.com [206.127.123.131]) by ns.yogotech.com (8.9.3/8.9.3) with ESMTP id VAA20853; Thu, 1 Mar 2001 21:06:37 -0700 (MST) (envelope-from nate@nomad.yogotech.com) Received: (from nate@localhost) by nomad.yogotech.com (8.8.8/8.8.8) id VAA24812; Thu, 1 Mar 2001 21:06:35 -0700 (MST) (envelope-from nate) From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15007.7243.450197.223135@nomad.yogotech.com> Date: Thu, 1 Mar 2001 21:06:35 -0700 (MST) To: "Jeroen C. van Gelderen" Cc: Nate Williams , FreeBSD Java , Ari Suutari Subject: Re: Are syscall wrappers needed in JNI? In-Reply-To: <3A9F015A.CE487843@vangelderen.org> References: <3A9AE85F.C6F06D96@vangelderen.org> <15002.60084.89087.467979@nomad.yogotech.com> <3A9EF71F.A13189C6@vangelderen.org> <15006.63617.145790.5705@nomad.yogotech.com> <3A9F015A.CE487843@vangelderen.org> X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Reply-To: nate@yogotech.com (Nate Williams) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > What I don't understand is that Ari says it can actually work > whereas you seem to indicate that calling libc functions > cannot be done until we get pthreads going... It can be done, but not 'safely'. > Are the two of you perhaps saying that one can call only those > libc functions that are also used by the JDK and therefore > exported from libhpi.so in wrapped form? (This interpretation > seems to agree with an nm libhpi.so in that nm reveals an > export for poll but not one for select which would explain > Ari's problems using poll. Except Ari implies that select didnt' work, but poll did. I would think the above is correct. > If the answer is yes I am happy because it means that my UNIX > domain socket project is feasible because all the calls I need > for UNIX socket support are already used by the JVM for it's > java.net.(Server)Socket implemtation (read/write/accept/...). > [...] > > Interesting enough, from my memory, select is wrapped in the JVM, but > > poll was not. My suspicion is that the wrapping was causing problems, > > and his modification to use 'poll' caused it to call the native poll, > > instead of the wrapped 'select' version, which can cause problems. > > The other way around. He called select which failed but everything > was fine after he switched to using poll which is wrapped in the > current JDK. Again, I'm pretty sure that select is wrapped, but poll isn't. At least, for JDK1.1 that is the way thing were, and I'm almost positive it's wrapped in JDK1.2. In particular, X11 and the Motif libraries use select, which is why they must be wrapped. Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Mar 1 23:24: 3 2001 Delivered-To: freebsd-java@freebsd.org Received: from osku.suutari.iki.fi (osku.syncrontech.com [213.28.98.4]) by hub.freebsd.org (Postfix) with ESMTP id 1D9D837B718 for ; Thu, 1 Mar 2001 23:23:59 -0800 (PST) (envelope-from ari@suutari.iki.fi) Received: from coffee (adsl-nat.syncrontech.com [213.28.98.3]) by osku.suutari.iki.fi (8.9.3/8.9.3) with SMTP id JAA23121; Fri, 2 Mar 2001 09:23:44 +0200 (EET) (envelope-from ari@suutari.iki.fi) Message-ID: <05bd01c0a2e9$a1b669e0$0e05a8c0@coffee> From: "Ari Suutari" To: "Nate Williams" , "Jeroen C. van Gelderen" Cc: "Nate Williams" , "FreeBSD Java" References: <3A9AE85F.C6F06D96@vangelderen.org><15002.60084.89087.467979@nomad.yogotech.com><3A9EF71F.A13189C6@vangelderen.org> <15006.63617.145790.5705@nomad.yogotech.com> Subject: Re: Are syscall wrappers needed in JNI? Date: Fri, 2 Mar 2001 09:23:07 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, > Interesting enough, from my memory, select is wrapped in the JVM, but > poll was not. I was talking about jdk1.2.2. For the version I was starting to use commapi, select was not wrapped, but poll was. You can even find discussion about this on freebsd-java mailing list, I think. If I remember correctly the reason for select not being wrapped was that JVM was internally using poll and thus patchers assumed that there was not need to wrap select. > My suspicion is that the wrapping was causing problems, > and his modification to use 'poll' caused it to call the native poll, > instead of the wrapped 'select' version, which can cause problems. > Nate I think you are wrong on this one. The select was not wrapped and it caused all threads on JVM to block when it was called by JNI code. However, poll was wrapped and changing the JNI code to call it resulted in working system. I even verified this with debugger, the poll call from JNI code really ends up into wrapped poll version inside JVM. It works this way because the loader, when loading .so containing commapi JNI code, looks for function called "poll" and it finds it from JVM main code so it is resolved to that instead of the standard version in libc. What this means that it *IS* safe to call methods that are wrapped by JVM. Anyone can verify all this easily with gdb. Ari S. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Mar 1 23:26:55 2001 Delivered-To: freebsd-java@freebsd.org Received: from osku.suutari.iki.fi (osku.syncrontech.com [213.28.98.4]) by hub.freebsd.org (Postfix) with ESMTP id BAD1537B718 for ; Thu, 1 Mar 2001 23:26:51 -0800 (PST) (envelope-from ari@suutari.iki.fi) Received: from coffee (adsl-nat.syncrontech.com [213.28.98.3]) by osku.suutari.iki.fi (8.9.3/8.9.3) with SMTP id JAA23134; Fri, 2 Mar 2001 09:26:44 +0200 (EET) (envelope-from ari@suutari.iki.fi) Message-ID: <05ce01c0a2ea$0cb6afc0$0e05a8c0@coffee> From: "Ari Suutari" To: "Ari Suutari" , "Nate Williams" , "Jeroen C. van Gelderen" Cc: "Nate Williams" , "FreeBSD Java" References: <3A9AE85F.C6F06D96@vangelderen.org><15002.60084.89087.467979@nomad.yogotech.com><3A9EF71F.A13189C6@vangelderen.org> <15006.63617.145790.5705@nomad.yogotech.com> <05bd01c0a2e9$a1b669e0$0e05a8c0@coffee> Subject: Re: Are syscall wrappers needed in JNI? Date: Fri, 2 Mar 2001 09:26:08 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, Replying to myself.... > What this > means that it *IS* safe to call methods that are wrapped by > JVM. methods -> functions (too much oo stuff in brains). I also forgot to say that to my understanding one can call functions with their real names (not the ones beginning with JVM_) because of the behaviour of loader I explained in previous e-mail. Ari S. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Fri Mar 2 0: 6:24 2001 Delivered-To: freebsd-java@freebsd.org Received: from pluto.senet.com.au (pluto.senet.com.au [203.56.239.150]) by hub.freebsd.org (Postfix) with ESMTP id 4EC0E37B719 for ; Fri, 2 Mar 2001 00:06:20 -0800 (PST) (envelope-from glewis@misty.eyesbeyond.com) Received: from misty.eyesbeyond.com (c21-fr-p39.senet.com.au [172.16.21.40]) by pluto.senet.com.au (8.11.0/8.11.0) with ESMTP id f2286DL60283; Fri, 2 Mar 2001 18:36:13 +1030 (CST) (envelope-from glewis@misty.eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.9.3/8.9.3) id SAA70007; Fri, 2 Mar 2001 18:36:11 +1030 (CST) (envelope-from glewis) Date: Fri, 2 Mar 2001 18:36:10 +1030 From: Greg Lewis To: Ari Suutari Cc: Nate Williams , "Jeroen C. van Gelderen" , FreeBSD Java Subject: Re: Are syscall wrappers needed in JNI? Message-ID: <20010302183610.A69992@misty.eyesbeyond.com> References: <3A9AE85F.C6F06D96@vangelderen.org><15002.60084.89087.467979@nomad.yogotech.com><3A9EF71F.A13189C6@vangelderen.org> <15006.63617.145790.5705@nomad.yogotech.com> <05bd01c0a2e9$a1b669e0$0e05a8c0@coffee> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <05bd01c0a2e9$a1b669e0$0e05a8c0@coffee>; from ari@suutari.iki.fi on Fri, Mar 02, 2001 at 09:23:07AM +0200 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Fri, Mar 02, 2001 at 09:23:07AM +0200, Ari Suutari wrote: > > Interesting enough, from my memory, select is wrapped in the JVM, but > > poll was not. > > > I was talking about jdk1.2.2. For the version I was starting to use > commapi, select was not wrapped, but poll was. You can even find > discussion about this on freebsd-java mailing list, I think. If I > remember > correctly the reason for select not being wrapped was that JVM was > internally using poll and thus patchers assumed that there was not need > to wrap select. Ari is correct. select() isn't wrapped in patchset 10. However, it is wrapped again in the current repository version. It was wrapped in some patchsets too. So Nate is also correct :). -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Mobile: 0419 868 494 Information Technology Web : http://www.eyesbeyond.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Fri Mar 2 5:57:49 2001 Delivered-To: freebsd-java@freebsd.org Received: from osku.suutari.iki.fi (osku.syncrontech.com [213.28.98.4]) by hub.freebsd.org (Postfix) with ESMTP id 6F42637B718 for ; Fri, 2 Mar 2001 05:57:45 -0800 (PST) (envelope-from ari@suutari.iki.fi) Received: from coffee (adsl-nat.syncrontech.com [213.28.98.3]) by osku.suutari.iki.fi (8.9.3/8.9.3) with SMTP id PAA23668; Fri, 2 Mar 2001 15:57:30 +0200 (EET) (envelope-from ari@suutari.iki.fi) Message-ID: <06f401c0a320$a3157fb0$0e05a8c0@coffee> From: "Ari Suutari" To: "Greg Lewis" Cc: "Nate Williams" , "Jeroen C. van Gelderen" , "FreeBSD Java" References: <3A9AE85F.C6F06D96@vangelderen.org><15002.60084.89087.467979@nomad.yogotech.com><3A9EF71F.A13189C6@vangelderen.org> <15006.63617.145790.5705@nomad.yogotech.com> <05bd01c0a2e9$a1b669e0$0e05a8c0@coffee> <20010302183610.A69992@misty.eyesbeyond.com> Subject: Re: Are syscall wrappers needed in JNI? Date: Fri, 2 Mar 2001 15:56:52 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, > Ari is correct. select() isn't wrapped in patchset 10. However, it is > wrapped again in the current repository version. It was wrapped in > some patchsets too. So Nate is also correct :). Nice that everyone can be correct :-} Ari S. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Fri Mar 2 7: 6:56 2001 Delivered-To: freebsd-java@freebsd.org Received: from ns.yogotech.com (ns.yogotech.com [206.127.123.66]) by hub.freebsd.org (Postfix) with ESMTP id 12CDE37B741 for ; Fri, 2 Mar 2001 07:06:47 -0800 (PST) (envelope-from nate@yogotech.com) Received: from nomad.yogotech.com (nomad.yogotech.com [206.127.123.131]) by ns.yogotech.com (8.9.3/8.9.3) with ESMTP id IAA01635; Fri, 2 Mar 2001 08:06:37 -0700 (MST) (envelope-from nate@nomad.yogotech.com) Received: (from nate@localhost) by nomad.yogotech.com (8.8.8/8.8.8) id IAA27402; Fri, 2 Mar 2001 08:06:35 -0700 (MST) (envelope-from nate) From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15007.46843.84717.169363@nomad.yogotech.com> Date: Fri, 2 Mar 2001 08:06:35 -0700 (MST) To: Greg Lewis Cc: Ari Suutari , Nate Williams , "Jeroen C. van Gelderen" , FreeBSD Java Subject: Re: Are syscall wrappers needed in JNI? In-Reply-To: <20010302183610.A69992@misty.eyesbeyond.com> References: <3A9AE85F.C6F06D96@vangelderen.org> <15002.60084.89087.467979@nomad.yogotech.com> <3A9EF71F.A13189C6@vangelderen.org> <15006.63617.145790.5705@nomad.yogotech.com> <05bd01c0a2e9$a1b669e0$0e05a8c0@coffee> <20010302183610.A69992@misty.eyesbeyond.com> X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Reply-To: nate@yogotech.com (Nate Williams) Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > > Interesting enough, from my memory, select is wrapped in the JVM, but > > > poll was not. > > > > I was talking about jdk1.2.2. For the version I was starting to use > > commapi, select was not wrapped, but poll was. You can even find > > discussion about this on freebsd-java mailing list, I think. If I > > remember > > correctly the reason for select not being wrapped was that JVM was > > internally using poll and thus patchers assumed that there was not need > > to wrap select. > > Ari is correct. select() isn't wrapped in patchset 10. However, it is > wrapped again in the current repository version. It was wrapped in > some patchsets too. So Nate is also correct :). Thanks for the clarification. I'm suprised anything prior to patchset 11 worked reliably with AWT worked, because Motif internally uses select. :) Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message