From owner-freebsd-java Sun Jul 8 14:27:35 2001 Delivered-To: freebsd-java@freebsd.org Received: from cepheus.azstarnet.com (cepheus.azstarnet.com [169.197.56.195]) by hub.freebsd.org (Postfix) with ESMTP id A4F8037B405; Sun, 8 Jul 2001 14:27:23 -0700 (PDT) (envelope-from Castalia@azstarnet.com) Received: from azstarnet.com (dhcp1057.mc01.dsl.fastucson.net [169.197.6.35]) by cepheus.azstarnet.com (8.9.3/8.9.3) with ESMTP id OAA16786; Sun, 8 Jul 2001 14:27:08 -0700 (MST) X-Sent-via: StarNet http://www.azstarnet.com/ Message-ID: <3B48D10C.897D98DD@azstarnet.com> Date: Sun, 08 Jul 2001 14:30:52 -0700 From: Bradford Castalia Organization: idaeim X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-questions@FreeBSD.org, freebsd-java@FreeBSD.org Subject: Motif VirtualBindings for Java with XFree86 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 This email will be of interest to anyone using the Sun Java distribution with XFree86 on FreeBSD: -------- Original Message -------- Subject: Re: [Xpert]VirtualBindings Date: Sun, 08 Jul 2001 14:16:38 -0700 The reply from Chuck Slivkoff to my query seeking a solution to the VirtualBindings problem is similar to many other responses to this problem query that I have found out on the internet. The basic thrust is to provide additional Motif virtual key bindings to satisfy the expectations of the application. After a lot of investigation and trial and error I have discovered that, while the basic idea is correct, the solution is much simpler. As described in the VirtualBindings(3) man page, Motif describes key translations in terms of virtual bindings that are stored in the X server as the _MOTIF_DEFAULT_BINDINGS resource, as Chuck Slivkoff shows below. This resource is defined by the first Motif application that runs (i.e. if it is not already set) using information found by a search for well-known files. As Chuck Slivkoff points out ~/.motifbind is one of these files and provides individual user control. If no files are found in the search Motif loads a set of hard-coded fallback bindings. One of the files that is sought, however, is the system-wide xmbind.alias file which can be found in the /usr/X11R6/lib/X11/bindings directory of the XFree86 distribution (note: this is different than the location specified in the VirtualBindings man page; /usr/lib/Xm/bindings). This xmbind.alias file maps the vendor string of the X server (run xdpyinfo to see it) to the name of a file containing the appropriate virtual bindings definitions (they are in the same directory). Unfortunately, the XFree86 distribution does not contain an entry for the XFree86 server in this file (! an easy to miss oversight that will probably be fixed in future releases :-). So edit this file and add this line (the file contains a clear description of the format): "The XFree86 Project, Inc" XFree86 The provide the file named XFree86 in the same directory by copying one of the other virtual bindings definitions files. I used the sun_at file. Then restart the X server. Note that the xmbind utility can be used to set the appropriate virtual bindings. For example, "xmbind /usr/X11R6/lib/X11/bindings/sun_at" will do the job. But the xmbind.alias file should be updated to provide a permanent fix. -- Bradford Castalia Castalia@azstarnet.com Systems Analyst http://azstarnet.com/~castalia idaeim 520-624-6629 "Build an image in your mind, fit yourself into it." The Log of Cyradis, Seeress of Kell. Chuck Slivkoff wrote: > > Bradford Castalia wrote: > > > > On a FreeBSD system (4.2-STABLE, i386) using XFree86 4.0.2 I have > > installed the Sun JDK (1.3.1) Java distribution. This works fine > > (with the -classic JVM). However, when running Java GUI aps I am > > plagued by this annoying, but otherwise seemingly inoffensive, > > sequence of warning messages on startup: > > > > Warning: Cannot convert string "Escape,_Key_Cancel" to > > type VirtualBinding > > [snip] > > IIRC, the first Motif client started is responsible for loading a > keybinding property to the root window if one does not already exist. > I'm not sure on the exact order, but I believe Motif looks for > ~/.motifbind, $XMBINDDIR and then a compiled-in default. The X server > vendor string also has an influence. > > One of the causes of the warning messages is when there are unrecognized > keysyms specified. I think the problem could be that the "_Key_" should > really be "". Here's a possible workaround. > > Check your root-window properties (xprop -root) for something like > _MOTIF_DEFAULT_BINDINGS: > > $ xprop -root |grep -i bind > _MOTIF_DEFAULT_BINDINGS(STRING) = "osfActivate : KP_Enter > \nosfAddMode : ShiftF8 \nosfBackSpace : BackSpace > \nosfBeginLine : Home \nosfCancel : Escape > \nosfClear : Clear \nosfCopy : > CtrlInsert\nosfCut : ShiftDelete\nosfDelete : > Delete \nosfEndLine : End \nosfHelp : > F1 \nosfInsert : Insert \nosfLeft : > Left \nosfMenu : ShiftF10 \nosfMenuBar : > F10 \nosfPageDown : Next \nosfPageLeft : > CtrlPrior \nosfPageRight : CtrlNext \nosfPageUp : > Prior \nosfPaste : ShiftInsert\nosfPrimaryPaste:Meta > CtrlInsert\nosfRight : Right \nosfSelect : > Select \nosfUndo : Undo \nosfUp : > Up \nosfDown : Down " > > Save this to ~/.motifbind and clean it up as such: > > ! ~/.motifbind > ! This is a comment > > osfActivate : KP_Enter > osfAddMode : ShiftF8 > osfBackSpace : BackSpace > osfBeginLine : Home > osfCancel : Escape > osfClear : Clear > osfCopy : CtrlInsert > osfCut : ShiftDelete > osfDelete : Delete > osfEndLine : End > osfHelp : F1 > osfInsert : Insert > osfLeft : Left > osfMenu : ShiftF10 > osfMenuBar : F10 > osfPageDown : Next > osfPageLeft : CtrlPrior > osfPageRight : CtrlNext > osfPageUp : Prior > osfPaste : ShiftInsert > osfPrimaryPaste : Meta CtrlInsert > osfRight : Right > osfSelect : Select > osfUndo : Undo > osfUp : Up > osfDown : Down > > ! end of ~/.motifbind > > and try replacing "_Key_" with "". Then close all your Motif > applications, "xprop -remove" the property, then restart. > > If that doesn't help, you might try using the example above. > > -chuck To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Jul 9 4:42:27 2001 Delivered-To: freebsd-java@freebsd.org Received: from blueyonder.co.uk (pcow024o.blueyonder.co.uk [195.188.53.126]) by hub.freebsd.org (Postfix) with ESMTP id 9422037B405 for ; Mon, 9 Jul 2001 04:42:20 -0700 (PDT) (envelope-from ian.jenkinson@blueyonder.co.uk) Received: from buxtongw ([62.30.139.184]) by blueyonder.co.uk with Microsoft SMTPSVC(5.5.1877.687.68); Mon, 9 Jul 2001 12:44:28 +0100 Reply-To: From: "Ian Jenkinson" To: Subject: Threads in Java on a variety of platforms Date: Mon, 9 Jul 2001 12:42:41 +0100 Message-ID: <000201c1086c$433a29e0$0a64a8c0@buxtongw> X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 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 Ladies and Gentlemen, I've a question about thread models employed within a Java JVM. Can anyone kindly offer a concise discussion on the comparison of the thread model employed on Microsoft Windows, Linux, FreeBSD and Solaris? If it's the same model on all of them, is the model the same with 'green' and 'native' on the Unix platforms? Are these two logically the same at the level of java source that I write, just different deep within the JVM/how the OS implements it? If this is covered on a URL I'll be happy to read it but the research I've done so far hasn't lead me to an answer. Yours Ian Jenkinson To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Mon Jul 9 8:12:16 2001 Delivered-To: freebsd-java@freebsd.org Received: from mail.xmission.com (mail.xmission.com [198.60.22.22]) by hub.freebsd.org (Postfix) with ESMTP id 129DA37B403 for ; Mon, 9 Jul 2001 08:12:13 -0700 (PDT) (envelope-from glewis@misty.eyesbeyond.com) Received: from [166.70.6.21] (helo=misty.eyesbeyond.com) by mail.xmission.com with esmtp (Exim 3.12 #1) id 15Jchm-0001Tm-00; Mon, 09 Jul 2001 09:12:11 -0600 Received: (from glewis@localhost) by misty.eyesbeyond.com (8.11.3/8.11.3) id f69FC6o80908; Tue, 10 Jul 2001 00:42:06 +0930 (CST) (envelope-from glewis) Date: Tue, 10 Jul 2001 00:42:06 +0930 From: Greg Lewis To: Ian Jenkinson Cc: freebsd-java@FreeBSD.ORG Subject: Re: Threads in Java on a variety of platforms Message-ID: <20010710004206.A80869@misty.eyesbeyond.com> References: <000201c1086c$433a29e0$0a64a8c0@buxtongw> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <000201c1086c$433a29e0$0a64a8c0@buxtongw>; from ian.jenkinson@blueyonder.co.uk on Mon, Jul 09, 2001 at 12:42:41PM +0100 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 On Mon, Jul 09, 2001 at 12:42:41PM +0100, Ian Jenkinson wrote: > I've a question about thread models employed within a Java JVM. > Can anyone kindly offer a concise discussion on the comparison of the > thread model employed on > Microsoft Windows, Linux, FreeBSD and Solaris? If it's the same model on all > of them, is the model the same > with 'green' and 'native' on the Unix platforms? Hmmm, not sure how concise this will be, but I'll try to give you some idea :). Green threads are essentially the same across all platforms. They are implemented within and managed by the JVM itself. Native threads, however, rely on the underlying thread mechanism that is "native" to the OS. So Linux, for example, uses its clone() based kernel threads which have a pthreads interface. Solaris uses its native thread library. Etc. The FreeBSD JDK port doesn't support native threads at the moment. > Are these two logically the > same at the level of java source that I write, > just different deep within the JVM/how the OS implements it? Well, yes and no. With green threads you should get the same sort of behaviour across the board. With native threads (which is the default on most OSes) behaviour can be somewhat different. For example, when I was learning Java I wrote a program which worked fine under Windows 95 but thrashed the CPU on Windows NT. Why? Different underlying thread priority models. > If this is covered on a URL I'll be happy to read it but the research I've > done so far hasn't lead me to an answer. I would have thought the main Java site has something on this somewhere, but no idea where. HTH. -- 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 Tue Jul 10 4:38:57 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 0FC6F37B407 for ; Tue, 10 Jul 2001 04:38:53 -0700 (PDT) (envelope-from past@netmode.ntua.gr) Received: from netmode.ntua.gr (dolly.netmode.ece.ntua.gr [147.102.13.10]) by ntua.gr (8.11.4/8.11.4) with ESMTP id f6ABcoY02265; Tue, 10 Jul 2001 14:38:50 +0300 (EET DST) Received: (from past@localhost) by netmode.ntua.gr (8.11.1/8.11.1) id f6ABcoV14922; Tue, 10 Jul 2001 14:38:50 +0300 (EEST) (envelope-from past) Date: Tue, 10 Jul 2001 14:38:50 +0300 From: Panagiotis Astithas To: Greg Lewis Cc: Ian Jenkinson , freebsd-java@FreeBSD.ORG Subject: Re: Threads in Java on a variety of platforms Message-ID: <20010710143850.B12282@netmode.ece.ntua.gr> Reply-To: past@netmode.ntua.gr Mail-Followup-To: Panagiotis Astithas , Greg Lewis , Ian Jenkinson , freebsd-java@FreeBSD.ORG References: <000201c1086c$433a29e0$0a64a8c0@buxtongw> <20010710004206.A80869@misty.eyesbeyond.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20010710004206.A80869@misty.eyesbeyond.com>; from glewis@eyesbeyond.com on Tue, Jul 10, 2001 at 12:42:06AM +0930 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 List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tue, Jul 10, 2001 at 12:42:06AM +0930, Greg Lewis wrote: > On Mon, Jul 09, 2001 at 12:42:41PM +0100, Ian Jenkinson wrote: > > I've a question about thread models employed within a Java JVM. > > Can anyone kindly offer a concise discussion on the comparison of the > > thread model employed on > > Microsoft Windows, Linux, FreeBSD and Solaris? If it's the same model on all > > of them, is the model the same > > with 'green' and 'native' on the Unix platforms? > > Hmmm, not sure how concise this will be, but I'll try to give you some > idea :). Green threads are essentially the same across all platforms. > They are implemented within and managed by the JVM itself. Native > threads, however, rely on the underlying thread mechanism that is "native" > to the OS. So Linux, for example, uses its clone() based kernel > threads which have a pthreads interface. Solaris uses its native thread > library. Etc. The FreeBSD JDK port doesn't support native threads at the > moment. This is something that has been bugging me for a while: would it be good to implement the native threads in FreeBSD under LinuxThreads or NGPT? I see that KSE's are taking off, but there is a long way ahead. I am thinking of something like a straight port of the Linux JDK native threads. Have you contemplated this in your 1.3 porting efforts, or did you stick to green threads? > > Are these two logically the > > same at the level of java source that I write, > > just different deep within the JVM/how the OS implements it? > > Well, yes and no. With green threads you should get the same sort of > behaviour across the board. With native threads (which is the default > on most OSes) behaviour can be somewhat different. For example, when I > was learning Java I wrote a program which worked fine under Windows 95 > but thrashed the CPU on Windows NT. Why? Different underlying thread > priority models. The moto IIRC is "don't rely on thread priorities for your application's logic, if you want to be cross-platform". > > If this is covered on a URL I'll be happy to read it but the research I've > > done so far hasn't lead me to an answer. > > I would have thought the main Java site has something on this somewhere, > but no idea where. IIRC the java-linux mailing list had a recent thread on the subject. You might want to check the archives for more. -past To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Jul 10 8:42:45 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 1DC7B37B401 for ; Tue, 10 Jul 2001 08:42:41 -0700 (PDT) (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 JAA23989; Tue, 10 Jul 2001 09:42:32 -0600 (MDT) (envelope-from nate@nomad.yogotech.com) Received: (from nate@localhost) by nomad.yogotech.com (8.8.8/8.8.8) id JAA22902; Tue, 10 Jul 2001 09:42:31 -0600 (MDT) (envelope-from nate) From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15179.8807.678021.249446@nomad.yogotech.com> Date: Tue, 10 Jul 2001 09:42:31 -0600 (MDT) To: past@netmode.ntua.gr Cc: Greg Lewis , Ian Jenkinson , freebsd-java@FreeBSD.ORG Subject: Re: Threads in Java on a variety of platforms In-Reply-To: <20010710143850.B12282@netmode.ece.ntua.gr> References: <000201c1086c$433a29e0$0a64a8c0@buxtongw> <20010710004206.A80869@misty.eyesbeyond.com> <20010710143850.B12282@netmode.ece.ntua.gr> 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 List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org [ FreeBSD uses internal green-threads, while most other OS's use native threads ] > This is something that has been bugging me for a while: would it be > good to implement the native threads in FreeBSD under LinuxThreads or > NGPT? Except that these will never be used in the 'stock' FreeBSD kernel because of the GPL virus. Second, it's alot of work to rewrite the system for another threading model. The code (as written) is coded to run either with green threads, or with native (Posix) threads. > > Well, yes and no. With green threads you should get the same sort of > > behaviour across the board. With native threads (which is the default > > on most OSes) behaviour can be somewhat different. For example, when I > > was learning Java I wrote a program which worked fine under Windows 95 > > but thrashed the CPU on Windows NT. Why? Different underlying thread > > priority models. > > The moto IIRC is "don't rely on thread priorities for your > application's logic, if you want to be cross-platform". Thread priorities aren't the only thing effected by the change from green threads and native threads. In particular, how the threads are scheduled can show up code that deadlocks, livelocks, or other strange behavior depending on the scheduling. Also, sometimes you're design *must* rely on thread priorities. They *will* work on cross-platform is you test it on the platforms you intend to run it on. Our application ran on Win95/98/NT, FreeBSD, and Solaris green-threads/native threads great. However, it took some time to tweak it so that the code was 'portable' and ran well across all of the platforms. In the end, after all was said and done, it ran better on *all* platforms because of the effort. Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Jul 10 9:18:35 2001 Delivered-To: freebsd-java@freebsd.org Received: from mail.xmission.com (mail.xmission.com [198.60.22.22]) by hub.freebsd.org (Postfix) with ESMTP id 1B0D737B417 for ; Tue, 10 Jul 2001 09:18:27 -0700 (PDT) (envelope-from glewis@misty.eyesbeyond.com) Received: from [166.70.2.203] (helo=misty.eyesbeyond.com) by mail.xmission.com with esmtp (Exim 3.12 #1) id 15K0DQ-0000UY-00; Tue, 10 Jul 2001 10:18:25 -0600 Received: (from glewis@localhost) by misty.eyesbeyond.com (8.11.3/8.11.3) id f6AGIKb59091; Wed, 11 Jul 2001 01:48:20 +0930 (CST) (envelope-from glewis) Date: Wed, 11 Jul 2001 01:48:19 +0930 From: Greg Lewis To: Panagiotis Astithas Cc: Greg Lewis , Ian Jenkinson , freebsd-java@FreeBSD.ORG Subject: Re: Threads in Java on a variety of platforms Message-ID: <20010711014819.A58979@misty.eyesbeyond.com> References: <000201c1086c$433a29e0$0a64a8c0@buxtongw> <20010710004206.A80869@misty.eyesbeyond.com> <20010710143850.B12282@netmode.ece.ntua.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010710143850.B12282@netmode.ece.ntua.gr>; from past@netmode.ntua.gr on Tue, Jul 10, 2001 at 02:38:50PM +0300 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 On Tue, Jul 10, 2001 at 02:38:50PM +0300, Panagiotis Astithas wrote: > On Tue, Jul 10, 2001 at 12:42:06AM +0930, Greg Lewis wrote: > This is something that has been bugging me for a while: would it be good to > implement the native threads in FreeBSD under LinuxThreads or NGPT? I see that > KSE's are taking off, but there is a long way ahead. I am thinking of something > like a straight port of the Linux JDK native threads. Have you contemplated this > in your 1.3 porting efforts, or did you stick to green threads? At the moment, I've only gotten green threads "working" in the 1.3.1 port. However, I think that a LinuxThreads or NGPT implementation of native threads may be useful until KSE's become standard on FreeBSD. Saying that, it would likely be restricted to source code patches and not become part of any binary distribution we may be able to make due to the licensing. We might be able to work on that though, given they are both LGPL rather than GPL (I think, not 100% sure on NGPT). The primary threading mechanism for native threads would always be something that came as part of the stock FreeBSD distribution however. -- 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 Tue Jul 10 9:28:23 2001 Delivered-To: freebsd-java@freebsd.org Received: from mail.xmission.com (mail.xmission.com [198.60.22.22]) by hub.freebsd.org (Postfix) with ESMTP id 80BD637B401 for ; Tue, 10 Jul 2001 09:28:20 -0700 (PDT) (envelope-from glewis@misty.eyesbeyond.com) Received: from [166.70.2.203] (helo=misty.eyesbeyond.com) by mail.xmission.com with esmtp (Exim 3.12 #1) id 15K0N0-0003g8-00; Tue, 10 Jul 2001 10:28:19 -0600 Received: (from glewis@localhost) by misty.eyesbeyond.com (8.11.3/8.11.3) id f6AGSDj59161; Wed, 11 Jul 2001 01:58:13 +0930 (CST) (envelope-from glewis) Date: Wed, 11 Jul 2001 01:58:13 +0930 From: Greg Lewis To: Nate Williams Cc: past@netmode.ntua.gr, Greg Lewis , Ian Jenkinson , freebsd-java@FreeBSD.ORG Subject: Re: Threads in Java on a variety of platforms Message-ID: <20010711015813.B58979@misty.eyesbeyond.com> References: <000201c1086c$433a29e0$0a64a8c0@buxtongw> <20010710004206.A80869@misty.eyesbeyond.com> <20010710143850.B12282@netmode.ece.ntua.gr> <15179.8807.678021.249446@nomad.yogotech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <15179.8807.678021.249446@nomad.yogotech.com>; from nate@yogotech.com on Tue, Jul 10, 2001 at 09:42:31AM -0600 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 On Tue, Jul 10, 2001 at 09:42:31AM -0600, Nate Williams wrote: > [ FreeBSD uses internal green-threads, while most other OS's use native > threads ] > > > This is something that has been bugging me for a while: would it be > > good to implement the native threads in FreeBSD under LinuxThreads or > > NGPT? > > Except that these will never be used in the 'stock' FreeBSD kernel > because of the GPL virus. Second, it's alot of work to rewrite the system > for another threading model. The code (as written) is coded to run > either with green threads, or with native (Posix) threads. Actually, in 1.3.1 the operating system specific part of native threads is restricted to essentially two or three files, so its not too difficult to introduce a new threading system. This is especially true with the LinuxThreads option. With NGPT you may need a bit more work as there are no existing code bases which use it. I agree it would be a lot of work under 1.1 or 1.2 though! -- 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 Tue Jul 10 11:52:15 2001 Delivered-To: freebsd-java@freebsd.org Received: from yez.hyperreal.org (gate.sp.collab.net [64.211.228.36]) by hub.freebsd.org (Postfix) with SMTP id 89CC037B407 for ; Tue, 10 Jul 2001 11:52:12 -0700 (PDT) (envelope-from brian@collab.net) Received: (qmail 47243 invoked by uid 1000); 10 Jul 2001 18:53:37 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 10 Jul 2001 18:53:37 -0000 Date: Tue, 10 Jul 2001 11:53:37 -0700 (PDT) From: Brian Behlendorf X-X-Sender: To: Nate Williams Cc: Subject: Re: Threads in Java on a variety of platforms In-Reply-To: <15179.8807.678021.249446@nomad.yogotech.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 On Tue, 10 Jul 2001, Nate Williams wrote: > Except that these will never be used in the 'stock' FreeBSD kernel > because of the GPL virus. Second, it's alot of work to rewrite the system > for another threading model. The code (as written) is coded to run > either with green threads, or with native (Posix) threads. I'm wondering whether it's worth the FreeBSD porter's time to advocate that the core Java JVM could adopt the threading API in Apache's APR library (see http://apr.apache.org/) It acts as an abstraction layer over native thread implementations, as well as pthreads, IIRC. I'm not a developer on that project so I don't have the technical details. It may provide portability for a number of other functions as well. And the licensing is standard Apache license, so it can be integrated into the non-open-source JVM without a problem. Brian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Jul 10 12:11:12 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 64AE237B403 for ; Tue, 10 Jul 2001 12:11:09 -0700 (PDT) (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 NAA27712; Tue, 10 Jul 2001 13:10:56 -0600 (MDT) (envelope-from nate@nomad.yogotech.com) Received: (from nate@localhost) by nomad.yogotech.com (8.8.8/8.8.8) id NAA24102; Tue, 10 Jul 2001 13:10:56 -0600 (MDT) (envelope-from nate) From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15179.21311.786071.302589@nomad.yogotech.com> Date: Tue, 10 Jul 2001 13:10:55 -0600 (MDT) To: Greg Lewis Cc: Nate Williams , past@netmode.ntua.gr, Ian Jenkinson , freebsd-java@FreeBSD.ORG Subject: Re: Threads in Java on a variety of platforms In-Reply-To: <20010711015813.B58979@misty.eyesbeyond.com> References: <000201c1086c$433a29e0$0a64a8c0@buxtongw> <20010710004206.A80869@misty.eyesbeyond.com> <20010710143850.B12282@netmode.ece.ntua.gr> <15179.8807.678021.249446@nomad.yogotech.com> <20010711015813.B58979@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 List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > > [ FreeBSD uses internal green-threads, while most other OS's use native > > threads ] > > > > > This is something that has been bugging me for a while: would it be > > > good to implement the native threads in FreeBSD under LinuxThreads or > > > NGPT? > > > > Except that these will never be used in the 'stock' FreeBSD kernel > > because of the GPL virus. Second, it's alot of work to rewrite the system > > for another threading model. The code (as written) is coded to run > > either with green threads, or with native (Posix) threads. > > Actually, in 1.3.1 the operating system specific part of native threads > is restricted to essentially two or three files, so its not too difficult > to introduce a new threading system. Wow, that's great. And, FWIW, JDK 1.4 has no green threads support at all, so we're going to have to use something else (which I believe you 1.3 port is doing), so things will change in the future. Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Jul 10 16:11: 1 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 ABA2937B401 for ; Tue, 10 Jul 2001 16:10:57 -0700 (PDT) (envelope-from billh@gnuppy.monkey.org) Received: from billh by gnuppy.monkey.org with local (Exim 3.22 #1 (Debian)) id 15K6eE-0001fO-00; Tue, 10 Jul 2001 16:10:30 -0700 Date: Tue, 10 Jul 2001 16:10:30 -0700 To: Nate Williams Cc: Greg Lewis , past@netmode.ntua.gr, Ian Jenkinson , freebsd-java@FreeBSD.ORG, Bill Huey Subject: Re: Threads in Java on a variety of platforms Message-ID: <20010710161030.A2843@gnuppy> References: <000201c1086c$433a29e0$0a64a8c0@buxtongw> <20010710004206.A80869@misty.eyesbeyond.com> <20010710143850.B12282@netmode.ece.ntua.gr> <15179.8807.678021.249446@nomad.yogotech.com> <20010711015813.B58979@misty.eyesbeyond.com> <15179.21311.786071.302589@nomad.yogotech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15179.21311.786071.302589@nomad.yogotech.com> User-Agent: Mutt/1.3.18i From: Bill Huey 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 On Tue, Jul 10, 2001 at 01:10:55PM -0600, Nate Williams wrote: > > Actually, in 1.3.1 the operating system specific part of native threads > > is restricted to essentially two or three files, so its not too difficult > > to introduce a new threading system. > > Wow, that's great. And, FWIW, JDK 1.4 has no green threads support at > all, so we're going to have to use something else (which I believe you > 1.3 port is doing), so things will change in the future. > Nate Yeah, the changes needed to be made are pretty minimal which is why I suggested that doing a native threads port would easier to maintain the green threads system. The changes are pretty much localized into one major file that contains three threading model with #ifdef-s (solaris, pthread Linux Threads), one pthreads support file for dealing with stuff outside of the normal Posix spec (suspension of a whole bunch of threads outside of the currently executing one) and stuff that's randomly spread across the entire hpi/ directory dealing with locking/condition variables, etc... In my port, I pretty much black box as much as I can and rely solely on the correctness of our pthreads system so that any possible blow ups would be mostly contained within the OS specific pthreads implementation. [BSD/OS Port Update] BTW, I'm finally got around some of the ld.so issues that's been hampering me since April. I got all the AWT/Motif stuff dynamically loading correctly now (after severe ld.so mangling), but it hangs when trying to open a X connection for some reason. Ok, the symbol _dl_debug_addr is an entry point for the gdb system to break at when loading a shared object. For some reason the function pointer call crashes gdb itself, so I can't just run the process under gdb, hit control-C and break at the point where it's is sleeping (from information from 'top') and find what the hell is going on. Apparenly this is a signal delivery problem with in gdb itself and it's looking like I'm going to be distracted dealing with rather screwy gdb code to fix this. :-\ The good thing about this is that it actually attempts to open and X connection for the first time which means that I'm making progress again and that I'm possibly pretty close to a pre-alpha release. ;-) bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Jul 10 16:16:21 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 C800B37B407 for ; Tue, 10 Jul 2001 16:16:18 -0700 (PDT) (envelope-from billh@gnuppy.monkey.org) Received: from billh by gnuppy.monkey.org with local (Exim 3.22 #1 (Debian)) id 15K6jL-0001g1-00; Tue, 10 Jul 2001 16:15:47 -0700 Date: Tue, 10 Jul 2001 16:15:47 -0700 To: Brian Behlendorf Cc: Nate Williams , freebsd-java@FreeBSD.ORG Subject: Re: Threads in Java on a variety of platforms Message-ID: <20010710161547.B2843@gnuppy> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.18i From: Bill Huey 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 On Tue, Jul 10, 2001 at 11:53:37AM -0700, Brian Behlendorf wrote: > I'm wondering whether it's worth the FreeBSD porter's time to advocate > that the core Java JVM could adopt the threading API in Apache's APR > library (see http://apr.apache.org/) It acts as an abstraction layer over > native thread implementations, as well as pthreads, IIRC. I'm not a > developer on that project so I don't have the technical details. It may > provide portability for a number of other functions as well. And the > licensing is standard Apache license, so it can be integrated into the > non-open-source JVM without a problem. > > Brian The JVM itself has a pretty well testing thread abstraction system and porting to another threading system would be more work than neccessary. All the pthreads stuff is already in the source tree already and it's just a matter of #ifdefing the right blocks into place. ;-) The JVM also has some pretty exotic needs, synchronization primitives, etc... and it's unlikely that a generic portable threading system would supply what the JVM needs without severe hacking/mangling. I'll look at the link though. ;-) bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Jul 10 19:15:20 2001 Delivered-To: freebsd-java@freebsd.org Received: from polarbear.nameprotect.com (mail.nameprotect.com [12.40.85.19]) by hub.freebsd.org (Postfix) with ESMTP id 9B36037B408 for ; Tue, 10 Jul 2001 19:15:18 -0700 (PDT) (envelope-from gabor@nameprotect.com) Received: from nameprotect.com (gabor-bsd.nameprotect.com [192.168.1.161]) by polarbear.nameprotect.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 338Z60VJ; Tue, 10 Jul 2001 21:11:22 -0500 Message-ID: <3B4BB6B3.1103723D@nameprotect.com> Date: Tue, 10 Jul 2001 21:15:15 -0500 From: Gabor Kincses X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: hu, de-DE, en MIME-Version: 1.0 To: Greg Lewis Cc: Panagiotis Astithas , Ian Jenkinson , freebsd-java@FreeBSD.ORG Subject: Re: Threads in Java on a variety of platforms References: <000201c1086c$433a29e0$0a64a8c0@buxtongw> <20010710004206.A80869@misty.eyesbeyond.com> <20010710143850.B12282@netmode.ece.ntua.gr> <20010711014819.A58979@misty.eyesbeyond.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 Greg Lewis wrote: > > On Tue, Jul 10, 2001 at 02:38:50PM +0300, Panagiotis Astithas wrote: > > On Tue, Jul 10, 2001 at 12:42:06AM +0930, Greg Lewis wrote: > > This is something that has been bugging me for a while: would it be good to > > implement the native threads in FreeBSD under LinuxThreads or NGPT? I see that > > KSE's are taking off, but there is a long way ahead. I am thinking of something > > like a straight port of the Linux JDK native threads. Have you contemplated this > > in your 1.3 porting efforts, or did you stick to green threads? > > At the moment, I've only gotten green threads "working" in the 1.3.1 port. > However, I think that a LinuxThreads or NGPT implementation of native > threads may be useful until KSE's become standard on FreeBSD. Saying that, > it would likely be restricted to source code patches and not > become part of any binary distribution we may be able to make due to > the licensing. We might be able to work on that though, given they are > both LGPL rather than GPL (I think, not 100% sure on NGPT). The primary > threading mechanism for native threads would always be something that > came as part of the stock FreeBSD distribution however. I'm REALLY happy to see a 1.3 port coming down the pike. I have already told our sysadmin to reimage the RH 7.1 slimlines with FBSD 4.3. ;-) Which leads to another question: what is the status of the HotSpot VM? (Enhydra is pretty slow without a JIT). -- Gabor Kincses Running FreeBSD 4.3-RC3 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Tue Jul 10 21:48:26 2001 Delivered-To: freebsd-java@freebsd.org Received: from mail.xmission.com (mail.xmission.com [198.60.22.22]) by hub.freebsd.org (Postfix) with ESMTP id E3B8737B401 for ; Tue, 10 Jul 2001 21:48:24 -0700 (PDT) (envelope-from glewis@misty.eyesbeyond.com) Received: from [166.70.2.177] (helo=misty.eyesbeyond.com) by mail.xmission.com with esmtp (Exim 3.22 #1) id 15KBvD-0002Fm-00; Tue, 10 Jul 2001 22:48:24 -0600 Received: (from glewis@localhost) by misty.eyesbeyond.com (8.11.3/8.11.3) id f6B4mIr75334; Wed, 11 Jul 2001 14:18:18 +0930 (CST) (envelope-from glewis) Date: Wed, 11 Jul 2001 14:18:18 +0930 From: Greg Lewis To: Gabor Kincses Cc: Greg Lewis , Panagiotis Astithas , Ian Jenkinson , freebsd-java@FreeBSD.ORG Subject: Re: Threads in Java on a variety of platforms Message-ID: <20010711141817.A75313@misty.eyesbeyond.com> References: <000201c1086c$433a29e0$0a64a8c0@buxtongw> <20010710004206.A80869@misty.eyesbeyond.com> <20010710143850.B12282@netmode.ece.ntua.gr> <20010711014819.A58979@misty.eyesbeyond.com> <3B4BB6B3.1103723D@nameprotect.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3B4BB6B3.1103723D@nameprotect.com>; from gabor@nameprotect.com on Tue, Jul 10, 2001 at 09:15:15PM -0500 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 On Tue, Jul 10, 2001 at 09:15:15PM -0500, Gabor Kincses wrote: > Which leads to another question: what is the status of the HotSpot VM? > (Enhydra is pretty slow without a JIT). I don't know of anyone having done work on HotSpot as yet. My understanding is that you need native threads working to get HotSpot going (but I could be mistaken :). Hence I'll be looking at getting them working before having a go at HotSpot. -- 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 Tue Jul 10 23:18:59 2001 Delivered-To: freebsd-java@freebsd.org Received: from mail.earthtribe.net (adsl-64-161-63-10.dsl.snlo01.pacbell.net [64.161.63.10]) by hub.freebsd.org (Postfix) with SMTP id E533037B406 for ; Tue, 10 Jul 2001 23:18:55 -0700 (PDT) (envelope-from mdagosta@earthtribe.net) Received: (qmail 60108 invoked from network); 10 Jul 2001 23:18:54 -0700 Received: from unknown (HELO quest.earthtribe.net) (192.168.1.20) by 0 with SMTP; 10 Jul 2001 23:18:54 -0700 Message-Id: <5.1.0.14.0.20010710232019.00b0c058@spot.earthtribe.net> X-Sender: mdagosta@spot.earthtribe.net X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Tue, 10 Jul 2001 23:22:13 -0700 To: freebsd-java@freebsd.org From: Mike D'Agosta Subject: Sun's JDK 1.4 and FreeBSD Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=====================_10429326==_" 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 --=====================_10429326==_ Content-Type: text/plain; charset="us-ascii"; format=flowed I've attached a .html file with a very basic overview of installing Sun's JDK1.4 on FreeBSD. Might be good advertising for the FreeBSD-Java home page. Mike --=====================_10429326==_ Content-Type: text/html; charset="us-ascii" Content-Disposition: attachment; filename="FreeBSD-jdk1.4.html"

Installing j2sdk1.4

I just got curious and installed j2sdk1.4 on my FreeBSD 4.3-STABLE. So far I've done very few tests - installed jakarta-tomcat and ran some small programs I had. I haven't tested anything with threading, jini, rmi, gui, etc.

mdagosta@vitruvian:~> java -version
expr: syntax error
java version "1.4.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b65)
Java HotSpot(TM) Client VM (build 1.4.0-beta-b65, mixed mode)

mdagosta@vitruvian:~> jikes
Jikes Compiler
(C) Copyright IBM Corp. 1997, 2001.

Version 1.14 - 13 May 2001
Mike

For the Impatient

  1. Install linux_base-6.1 - FTP Package
  2. Install javavmwrapper-1.1 - FTP Package
  3. Get Sun's JDK 1.4 (beta) - HTTP
  4. Unpack it to XXX and set/export JAVA_HOME=XXX
  5. Install IBM's Jikes - FTP Package
--=====================_10429326==_-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Jul 11 5:16:47 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 3823E37B407 for ; Wed, 11 Jul 2001 05:16:44 -0700 (PDT) (envelope-from past@netmode.ntua.gr) Received: from netmode.ntua.gr (dolly.netmode.ece.ntua.gr [147.102.13.10]) by ntua.gr (8.11.4/8.11.4) with ESMTP id f6BCGgY05347; Wed, 11 Jul 2001 15:16:42 +0300 (EET DST) Received: (from past@localhost) by netmode.ntua.gr (8.11.1/8.11.1) id f6BCGfj51104; Wed, 11 Jul 2001 15:16:41 +0300 (EEST) (envelope-from past) Date: Wed, 11 Jul 2001 15:16:41 +0300 From: Panagiotis Astithas To: Greg Lewis Cc: freebsd-java@FreeBSD.ORG Subject: Re: Threads in Java on a variety of platforms Message-ID: <20010711151641.C50527@netmode.ece.ntua.gr> Reply-To: past@netmode.ntua.gr Mail-Followup-To: Panagiotis Astithas , Greg Lewis , freebsd-java@FreeBSD.ORG References: <000201c1086c$433a29e0$0a64a8c0@buxtongw> <20010710004206.A80869@misty.eyesbeyond.com> <20010710143850.B12282@netmode.ece.ntua.gr> <20010711014819.A58979@misty.eyesbeyond.com> <3B4BB6B3.1103723D@nameprotect.com> <20010711141817.A75313@misty.eyesbeyond.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20010711141817.A75313@misty.eyesbeyond.com>; from glewis@eyesbeyond.com on Wed, Jul 11, 2001 at 02:18:18PM +0930 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 List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Wed, Jul 11, 2001 at 02:18:18PM +0930, Greg Lewis wrote: > On Tue, Jul 10, 2001 at 09:15:15PM -0500, Gabor Kincses wrote: > > Which leads to another question: what is the status of the HotSpot VM? > > (Enhydra is pretty slow without a JIT). > > I don't know of anyone having done work on HotSpot as yet. My > understanding is that you need native threads working to get HotSpot > going (but I could be mistaken :). Hence I'll be looking at getting > them working before having a go at HotSpot. Are you close to a pre-alpha patchset release? I would like to invest some time into the porting effort, but I would like to avoid reinventing the wheel if possible :-). -past To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Jul 11 9: 5:30 2001 Delivered-To: freebsd-java@freebsd.org Received: from crewsoft.com (ns.aenet.net [157.22.214.1]) by hub.freebsd.org (Postfix) with ESMTP id AE6DA37B401 for ; Wed, 11 Jul 2001 09:05:27 -0700 (PDT) (envelope-from cedric@wireless-networks.com) X-csi-detect-spam: income_profit_fast_free Received: from [63.197.8.222] (account cberger@wireless-networks.com HELO wireless-networks.com) by crewsoft.com (CommuniGate Pro SMTP 3.4.7) with ESMTP id 775684 for freebsd-java@freebsd.org; Wed, 11 Jul 2001 09:08:56 -0700 Message-ID: <3B4C7981.E601DD79@wireless-networks.com> Date: Wed, 11 Jul 2001 09:06:25 -0700 From: Cedric Berger X-Mailer: Mozilla 4.76 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-java@freebsd.org Subject: Re: Sun's JDK 1.4 and FreeBSD References: <5.1.0.14.0.20010710232019.00b0c058@spot.earthtribe.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 What the h*** has jikes to do with a JDK 1.4 installation? Besides, does jikes understand the new 1.4 source constructs like assertions??? Cedric To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Jul 11 11:47:47 2001 Delivered-To: freebsd-java@freebsd.org Received: from heinz.jollem.com (c104187.upc-c.chello.nl [212.187.104.187]) by hub.freebsd.org (Postfix) with ESMTP id CA7D937B401 for ; Wed, 11 Jul 2001 11:47:43 -0700 (PDT) (envelope-from ernst@heinz.jollem.com) Received: (from ernst@localhost) by heinz.jollem.com (8.11.3/8.11.4) id f6BIjrU15103; Wed, 11 Jul 2001 20:45:53 +0200 (CEST) (envelope-from ernst) Date: Wed, 11 Jul 2001 20:45:53 +0200 From: Ernst de Haan To: "Mike D'Agosta" Cc: freebsd-java@FreeBSD.ORG Subject: Re: Sun's JDK 1.4 and FreeBSD Message-ID: <20010711204553.A15078@c187104187.telekabel.chello.nl> References: <5.1.0.14.0.20010710232019.00b0c058@spot.earthtribe.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <5.1.0.14.0.20010710232019.00b0c058@spot.earthtribe.net>; from mdagosta@earthtribe.net on Tue, Jul 10, 2001 at 11:22:13PM -0700 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 Mike, Why don't you just use the java/linux-jdk14 port? I wrote it the day Sun released the 1.4.0 beta, and Maxim committed it the very same day. (if my long-term memory serves me well) /Ernst Mike D'Agosta wrote: > I've attached a .html file with a very basic overview of installing Sun's > JDK1.4 on FreeBSD. Might be good advertising for the FreeBSD-Java home page. > > Mike -- Ernst de Haan Euronet Internet B.V. "Come to me all who are weary and burdened and I will give you rest" -- Jesus Christ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Jul 11 11:49:58 2001 Delivered-To: freebsd-java@freebsd.org Received: from heinz.jollem.com (c104187.upc-c.chello.nl [212.187.104.187]) by hub.freebsd.org (Postfix) with ESMTP id 7BBA437B403 for ; Wed, 11 Jul 2001 11:49:55 -0700 (PDT) (envelope-from ernst@heinz.jollem.com) Received: (from ernst@localhost) by heinz.jollem.com (8.11.3/8.11.4) id f6BIlXK15124; Wed, 11 Jul 2001 20:47:33 +0200 (CEST) (envelope-from ernst) Date: Wed, 11 Jul 2001 20:47:33 +0200 From: Ernst de Haan To: Cedric Berger Cc: freebsd-java@FreeBSD.ORG Subject: Re: Sun's JDK 1.4 and FreeBSD Message-ID: <20010711204733.B15078@c187104187.telekabel.chello.nl> References: <5.1.0.14.0.20010710232019.00b0c058@spot.earthtribe.net> <3B4C7981.E601DD79@wireless-networks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3B4C7981.E601DD79@wireless-networks.com>; from cedric@wireless-networks.com on Wed, Jul 11, 2001 at 09:06:25AM -0700 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 Heya Cedric, > Besides, does jikes understand the new 1.4 source constructs like assertions??? Good question. Dunno, but my guess would be "no". I think jikes 1.14 was released *before* JDK 1.4.0beta: ernst@heinz$ jikes -version 2>&1 | grep ersion Version 1.14 - 13 May 2001 Greetz, Ernst -- Ernst de Haan Euronet Internet B.V. "Come to me all who are weary and burdened and I will give you rest" -- Jesus Christ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Wed Jul 11 14:54:35 2001 Delivered-To: freebsd-java@freebsd.org Received: from spot.earthtribe.net (adsl-64-161-63-12.dsl.snlo01.pacbell.net [64.161.63.12]) by hub.freebsd.org (Postfix) with SMTP id 848AF37B401 for ; Wed, 11 Jul 2001 14:54:33 -0700 (PDT) (envelope-from mdagosta@spot.earthtribe.net) Received: (qmail 16046 invoked by uid 500); 11 Jul 2001 14:54:30 -0700 Date: Wed, 11 Jul 2001 14:54:30 -0700 From: Mike D'Agosta To: Ernst de Haan Cc: freebsd-java@FreeBSD.ORG Subject: Re: Sun's JDK 1.4 and FreeBSD Message-ID: <20010711145430.B16009@spot.earthtribe.net> References: <5.1.0.14.0.20010710232019.00b0c058@spot.earthtribe.net> <20010711204553.A15078@c187104187.telekabel.chello.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010711204553.A15078@c187104187.telekabel.chello.nl>; from ernsth@nl.euro.net on Wed, Jul 11, 2001 at 08:45:53PM +0200 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 > Why don't you just use the java/linux-jdk14 port? I wrote it the day Sun > released the 1.4.0 beta, and Maxim committed it the very same day. (if my > long-term memory serves me well) I saw only broken links everywhere I went and thought it was bogus. I've received a few other emails privately that explain to me otherwise. I went back and checked my links and I think it was a user error, because I see the port now. I'm glad you guys are way ahead of me... I just thought I'd try to stir something up if it wasn't already. But thankfully, you guys are way ahead of me and have given it far more thought. My apologies for my temporary incompetence :) I'll hook myself up with the ports version. Mike To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Jul 12 0: 7:44 2001 Delivered-To: freebsd-java@freebsd.org Received: from mail.xmission.com (mail.xmission.com [198.60.22.22]) by hub.freebsd.org (Postfix) with ESMTP id 5934037B401 for ; Thu, 12 Jul 2001 00:07:41 -0700 (PDT) (envelope-from glewis@misty.eyesbeyond.com) Received: from [166.70.9.233] (helo=misty.eyesbeyond.com) by mail.xmission.com with esmtp (Exim 3.22 #1) id 15KaZW-0004Dr-00; Thu, 12 Jul 2001 01:07:39 -0600 Received: (from glewis@localhost) by misty.eyesbeyond.com (8.11.3/8.11.3) id f6C77Wo94309; Thu, 12 Jul 2001 16:37:32 +0930 (CST) (envelope-from glewis) Date: Thu, 12 Jul 2001 16:37:32 +0930 From: Greg Lewis To: Panagiotis Astithas Cc: Greg Lewis , freebsd-java@FreeBSD.ORG Subject: Re: Threads in Java on a variety of platforms Message-ID: <20010712163732.A94266@misty.eyesbeyond.com> References: <000201c1086c$433a29e0$0a64a8c0@buxtongw> <20010710004206.A80869@misty.eyesbeyond.com> <20010710143850.B12282@netmode.ece.ntua.gr> <20010711014819.A58979@misty.eyesbeyond.com> <3B4BB6B3.1103723D@nameprotect.com> <20010711141817.A75313@misty.eyesbeyond.com> <20010711151641.C50527@netmode.ece.ntua.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010711151641.C50527@netmode.ece.ntua.gr>; from past@netmode.ntua.gr on Wed, Jul 11, 2001 at 03:16:41PM +0300 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 On Wed, Jul 11, 2001 at 03:16:41PM +0300, Panagiotis Astithas wrote: > Are you close to a pre-alpha patchset release? I would like to invest some time > into the porting effort, but I would like to avoid reinventing the wheel if > possible :-). Well...to do a kind of mini-status report: The JDK compiles with the classic VM and green threads. However, java is crashing and burning on any Swing type app and appletviewer is acting similarly. It might be something in the X code, but javadoc exhibits the same behaviour if I try and build the release images (and I noticed it doesn't reference libawt on the core dump in gdb). By the same token, javac, javah and jar perform without any problems during the build process, so much of the code is probably correct. I guess you'd call that pre-alpha :). I would like to release a patchset if people are interested, but its definitely developer only. I could do with the help :). If this is the way we go, something will probably come out on the weekend. We're also reasonably close to getting some sort of native threads support I think, thanks mainly to some contributions from Bill Huey. -- 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 Thu Jul 12 1:51:27 2001 Delivered-To: freebsd-java@freebsd.org Received: from matsulab.is.titech.ac.jp (matsulab.is.titech.ac.jp [131.112.35.129]) by hub.freebsd.org (Postfix) with ESMTP id 8EDF637B401 for ; Thu, 12 Jul 2001 01:51:19 -0700 (PDT) (envelope-from fuyuhik8@is.titech.ac.jp) Received: from tripper.private.is.titech.ac.jp by matsulab.is.titech.ac.jp (8.8.8+Sun/3.7W) id RAA25640; Thu, 12 Jul 2001 17:50:56 +0900 (JST) Date: Thu, 12 Jul 2001 17:52:36 +0900 Message-ID: <55lmluleaz.wl@tripper.private.is.titech.ac.jp> From: Fuyuhiko Maruyama To: Greg Lewis Cc: freebsd-java@FreeBSD.ORG Subject: Re: Threads in Java on a variety of platforms In-Reply-To: <20010712163732.A94266@misty.eyesbeyond.com> References: <000201c1086c$433a29e0$0a64a8c0@buxtongw> <20010710004206.A80869@misty.eyesbeyond.com> <20010710143850.B12282@netmode.ece.ntua.gr> <20010711014819.A58979@misty.eyesbeyond.com> <3B4BB6B3.1103723D@nameprotect.com> <20010711141817.A75313@misty.eyesbeyond.com> <20010711151641.C50527@netmode.ece.ntua.gr> <20010712163732.A94266@misty.eyesbeyond.com> User-Agent: Wanderlust/2.6.0 (Twist And Shout) on XEmacs/21.5.1 (anise) MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") 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 Hello, At Thu, 12 Jul 2001 16:37:32 +0930, Greg Lewis wrote: > I guess you'd call that pre-alpha :). I would like to release a patchset > if people are interested, but its definitely developer only. I could > do with the help :). If this is the way we go, something will probably > come out on the weekend. I'm very interested in the pre-alpha patchset. Please post it! -- Fuyuhiko MARUYAMA Matsuoka laboratory, Department of Mathematical and Computing Sciences, Graduate School of Information Science and Engineering, Tokyo Institute of Technology. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Jul 12 4:35:53 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 B730D37B403 for ; Thu, 12 Jul 2001 04:35:49 -0700 (PDT) (envelope-from past@netmode.ntua.gr) Received: from netmode.ntua.gr (dolly.netmode.ece.ntua.gr [147.102.13.10]) by ntua.gr (8.11.4/8.11.4) with ESMTP id f6CBZlT21808; Thu, 12 Jul 2001 14:35:47 +0300 (EET DST) Received: (from past@localhost) by netmode.ntua.gr (8.11.1/8.11.1) id f6CBZkX61527; Thu, 12 Jul 2001 14:35:47 +0300 (EEST) (envelope-from past) Date: Thu, 12 Jul 2001 14:35:46 +0300 From: Panagiotis Astithas To: Cedric Berger Cc: freebsd-java@FreeBSD.ORG Subject: Re: Sun's JDK 1.4 and FreeBSD Message-ID: <20010712143546.A60359@netmode.ece.ntua.gr> Reply-To: past@netmode.ntua.gr Mail-Followup-To: Panagiotis Astithas , Cedric Berger , freebsd-java@FreeBSD.ORG References: <5.1.0.14.0.20010710232019.00b0c058@spot.earthtribe.net> <3B4C7981.E601DD79@wireless-networks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <3B4C7981.E601DD79@wireless-networks.com>; from cedric@wireless-networks.com on Wed, Jul 11, 2001 at 09:06:25AM -0700 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 List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Wed, Jul 11, 2001 at 09:06:25AM -0700, Cedric Berger wrote: > What the h*** has jikes to do with a JDK 1.4 installation? > > Besides, does jikes understand the new 1.4 source constructs like assertions??? The 1.14. version no, but the patches to that effect have been committed and are being debugged. -past To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message From owner-freebsd-java Thu Jul 12 8:24:43 2001 Delivered-To: freebsd-java@freebsd.org Received: from naboo.ethz.ch (naboo.ethz.ch [129.132.17.66]) by hub.freebsd.org (Postfix) with ESMTP id A131A37B403 for ; Thu, 12 Jul 2001 08:24:41 -0700 (PDT) (envelope-from carlo@vis.ethz.ch) Received: by naboo.ethz.ch (Postfix, from userid 224) id 16049275B6; Thu, 12 Jul 2001 17:24:36 +0200 (CEST) Subject: Re: Threads in Java on a variety of platforms To: glewis@eyesbeyond.com (Greg Lewis) Date: Thu, 12 Jul 2001 17:24:35 +0200 (CEST) Cc: freebsd-java@freebsd.org In-Reply-To: <20010712163732.A94266@misty.eyesbeyond.com> from "Greg Lewis" at Jul 12, 2001 04:37:32 PM X-Mailer: ELM [version 2.5 PL1] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20010712152436.16049275B6@naboo.ethz.ch> From: carlo@vis.ethz.ch (Carlo Dapor) 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 > I guess you'd call that pre-alpha :). I would like to release a patchset > if people are interested, but its definitely developer only. I could > do with the help :). If this is the way we go, something will probably > come out on the weekend. Greg, I am also very interested in a 'developer-only' patchset. Thanks. Ciao, derweil, -- Carlo To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message