From owner-freebsd-java@FreeBSD.ORG Sun Aug 19 03:01:32 2007 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 44DF016A417; Sun, 19 Aug 2007 03:01:32 +0000 (UTC) (envelope-from ken@tydfam.jp) Received: from ns.tydfam.jp (ns.tydfam.jp [61.197.228.42]) by mx1.freebsd.org (Postfix) with ESMTP id DBD5213C459; Sun, 19 Aug 2007 03:01:24 +0000 (UTC) (envelope-from ken@tydfam.jp) Received: from localhost (tyd3.sub.tydfam.jp [192.168.1.3]) by ns.tydfam.jp (8.14.1/8.14.1) with ESMTP id l7J3058n015377; Sun, 19 Aug 2007 12:00:05 +0900 (JST) (envelope-from ken@tydfam.jp) Date: Sun, 19 Aug 2007 12:01:36 +0900 (JST) Message-Id: <20070819.120136.41629169.ken@tydfam.jp> To: anrays@gmail.com From: Ken Yamada In-Reply-To: <864piweemc.fsf@santinel.home.ua> References: <20070815144804.GC5151@misty.eyesbeyond.com> <20070818.213208.74754361.ken@tydfam.jp> <864piweemc.fsf@santinel.home.ua> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.91/3991/Sun Aug 19 09:31:39 2007 on ns.tydfam.jp X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.1 X-Spam-Checker-Version: SpamAssassin 3.2.1 (2007-05-02) on ns.tydfam.jp Cc: lists_freebsd_org@07.antispam.web-wahnsinn.de, freebsd-current@freebsd.org, freebsd-java@freebsd.org Subject: Re: Gcc bugs break java/jdk15 build? [Workaround] X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Aug 2007 03:01:32 -0000 Does this mean that GCC 4.2.1 does not solve "loop optimization bug" pointed out by Andrey Chernov (http://docs.freebsd.org/cgi/getmsg.cgi?fetch=282888+0+archive/2007/freebsd-current/20070701.freebsd-current) on 4.2.0? Is it a good idea of adding -fno-tree-vrp to CFLAGS in /etc/make.conf to avoid this optimization bug for all compilation? (BTW, I leave -O3 of CFLAGS as is in make.conf and just added -fno-tree-vrp to the end of the line.) From owner-freebsd-java@FreeBSD.ORG Sun Aug 19 08:06:37 2007 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7243116A469 for ; Sun, 19 Aug 2007 08:06:37 +0000 (UTC) (envelope-from se@FreeBSD.org) Received: from smtp001.mail.ukl.yahoo.com (smtp001.mail.ukl.yahoo.com [217.12.11.32]) by mx1.freebsd.org (Postfix) with SMTP id E0C7B13C46A for ; Sun, 19 Aug 2007 08:06:36 +0000 (UTC) (envelope-from se@FreeBSD.org) Received: (qmail 44965 invoked from network); 19 Aug 2007 07:39:54 -0000 Received: from unknown (HELO Gatekeeper.FreeBSD.org) (st.esser@80.135.178.118 with login) by smtp001.mail.ukl.yahoo.com with SMTP; 19 Aug 2007 07:39:54 -0000 X-YMail-OSG: RmGRFIwVM1lZeWAhlnixiBk53lqOnLUNG9x3IwTUk1VJcCmFmYpkCPhSeVr.4cRs3c86oVu7J66x1beaeHw3lrV0DfbxhwJHdA-- Received: by Gatekeeper.FreeBSD.org (Postfix, from userid 200) id EB5A418FB; Sun, 19 Aug 2007 09:39:53 +0200 (CEST) Date: Sun, 19 Aug 2007 09:39:53 +0200 From: Stefan =?iso-8859-1?Q?E=DFer?= To: Ken Yamada Message-ID: <20070819073953.GA36594@Gatekeeper.FreeBSD.org> Mail-Followup-To: Stefan =?iso-8859-1?Q?E=DFer?= , Ken Yamada , anrays@gmail.com, glewis@eyesbeyond.com, lists_freebsd_org@07.antispam.web-wahnsinn.de, freebsd-current@freebsd.org, freebsd-java@freebsd.org References: <20070815144804.GC5151@misty.eyesbeyond.com> <20070818.213208.74754361.ken@tydfam.jp> <864piweemc.fsf@santinel.home.ua> <20070819.120136.41629169.ken@tydfam.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070819.120136.41629169.ken@tydfam.jp> User-Agent: Mutt/1.5.16 (2007-06-09) Cc: anrays@gmail.com, lists_freebsd_org@07.antispam.web-wahnsinn.de, freebsd-java@freebsd.org, freebsd-current@freebsd.org Subject: Re: Gcc bugs break java/jdk15 build? [Workaround] X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Aug 2007 08:06:37 -0000 On 2007-08-19 12:01 +0900, Ken Yamada wrote: > Does this mean that GCC 4.2.1 does not solve "loop optimization bug" > pointed out by Andrey Chernov (http://docs.freebsd.org/cgi/getmsg.cgi?fetch=282888+0+archive/2007/freebsd-current/20070701.freebsd-current) on 4.2.0? > > Is it a good idea of adding -fno-tree-vrp to CFLAGS in /etc/make.conf > to avoid this optimization bug for all compilation? (BTW, I leave -O3 > of CFLAGS as is in make.conf and just added -fno-tree-vrp to the end of > the line.) I did just that (added -fno-tree-vrp to CFLAGS) after it was found that gcc-4.2 had the optimizer bug, and have continued to build my system with -O2 (or other optimization levels as required). This seems to work just fine (no problems with ports that are not working when built with a plain -O2). I had suggested to make -fno-tree-vrp the default for our CC (could be overridden on the command line, but would allow to use all -O levels without being hit by the compiler bug; but it appears that nobody else liked the idea at that time, i.e. no response at all ...). Regards, STefan From owner-freebsd-java@FreeBSD.ORG Sun Aug 19 10:12:05 2007 Return-Path: Delivered-To: freebsd-java@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5B11416A41A for ; Sun, 19 Aug 2007 10:12:05 +0000 (UTC) (envelope-from ache@nagual.pp.ru) Received: from nagual.pp.ru (nagual.pp.ru [194.87.13.69]) by mx1.freebsd.org (Postfix) with ESMTP id D07DC13C442 for ; Sun, 19 Aug 2007 10:12:04 +0000 (UTC) (envelope-from ache@nagual.pp.ru) Received: from nagual.pp.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.14.1/8.14.1) with ESMTP id l7J9re76079933; Sun, 19 Aug 2007 13:53:41 +0400 (MSD) (envelope-from ache@nagual.pp.ru) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nagual.pp.ru; s=default; t=1187517221; bh=hILdqoeVBgsdcYYyFgY6KeMlJ5+lb6yUp7DrKIw qUX0=; l=668; h=Received:Date:From:To:Cc:Subject:Message-ID: Mail-Followup-To:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To:User-Agent; b=jLruKHi5QNjCxIZrbcIm wbILWOGf/VqcewKMjqolhYuAmA6x4mrvYo7adboJh9/tTf2gXakUd+fJ/9Dz8PZdVtc C/vFjzdh4MJMVJia/RgCQTJqoNCr33yxsq0eyx9dWrZb3itAACrv7/ras8mPvsG7nt2 d9mz29KCft8CLJNqg= Received: (from ache@localhost) by nagual.pp.ru (8.14.1/8.14.1/Submit) id l7J9rdGX079932; Sun, 19 Aug 2007 13:53:39 +0400 (MSD) (envelope-from ache) Date: Sun, 19 Aug 2007 13:53:39 +0400 From: Andrey Chernov To: Ken Yamada Message-ID: <20070819095339.GA79882@nagual.pp.ru> Mail-Followup-To: Andrey Chernov , Ken Yamada , anrays@gmail.com, glewis@eyesbeyond.com, lists_freebsd_org@07.antispam.web-wahnsinn.de, freebsd-current@FreeBSD.ORG, freebsd-java@FreeBSD.ORG References: <20070815144804.GC5151@misty.eyesbeyond.com> <20070818.213208.74754361.ken@tydfam.jp> <864piweemc.fsf@santinel.home.ua> <20070819.120136.41629169.ken@tydfam.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070819.120136.41629169.ken@tydfam.jp> User-Agent: Mutt/1.5.16 (2007-06-09) Cc: anrays@gmail.com, lists_freebsd_org@07.antispam.web-wahnsinn.de, freebsd-current@FreeBSD.ORG, freebsd-java@FreeBSD.ORG Subject: Re: Gcc bugs break java/jdk15 build? [Workaround] X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Aug 2007 10:12:05 -0000 On Sun, Aug 19, 2007 at 12:01:36PM +0900, Ken Yamada wrote: > Does this mean that GCC 4.2.1 does not solve "loop optimization bug" pointed out by Andrey Chernov (http://docs.freebsd.org/cgi/getmsg.cgi?fetch=282888+0+archive/2007/freebsd-current/20070701.freebsd-current) on 4.2.0? That bug is fixed, but it doesn't mean that no other tree-vrp bugs left. > Is it a good idea of adding -fno-tree-vrp to CFLAGS in /etc/make.conf to avoid this optimization bug for all compilation? (BTW, I leave -O3 of CFLAGS as is in make.conf and just added -fno-tree-vrp to the end of the line.) It is good idea to extract minimal bug code sample and submit it to gcc bugzilla. -- http://ache.pp.ru/ From owner-freebsd-java@FreeBSD.ORG Mon Aug 20 11:08:26 2007 Return-Path: Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 85A0D16A469 for ; Mon, 20 Aug 2007 11:08:26 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 6FED013C467 for ; Mon, 20 Aug 2007 11:08:26 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l7KB8QgU087470 for ; Mon, 20 Aug 2007 11:08:26 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l7KB8PIx087466 for freebsd-java@FreeBSD.org; Mon, 20 Aug 2007 11:08:25 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 20 Aug 2007 11:08:25 GMT Message-Id: <200708201108.l7KB8PIx087466@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-java@FreeBSD.org Cc: Subject: Current problem reports assigned to you X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Aug 2007 11:08:26 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- s ports/60083 java Unsafe use of getaddrinfo in jvm 1.4.2-p5 f java/72151 java JVM crash on 5.2.1-R o java/76631 java any port linux-*-jdk12 will core dump if using linux_b o java/105482 java diablo-jdk1.5.0/jdk-1.5.0 java.nio.Selector bug o java/110912 java Java krb5 client leaks UDP connections o java/112595 java Java appletviewer frequently hangs (kse_release loop) o ports/113467 java Multiple "missing return value" errors building JDK on o java/114644 java tomcat goes out of PermSpace, jvm crashes 8 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- f ports/56928 java jce-aba port should install to $JAVA_HOME/jre/lib/ext f java/62837 java linux-sun-jdk14 executables hang with COMPAT_LINUX in o ports/84742 java make ports/java/jdk14 use dynamic Motif librarires f ports/91244 java Bad instruction on making process of jdk14 o java/97461 java Diablo JDK does not report Update level in a format su o ports/113751 java java/linux-sun-jdk15: linux-sun-jdk-1.5.0.12,2 - java o ports/115279 java [UPDATE] java/java3d to 1.5.1 7 problems total. From owner-freebsd-java@FreeBSD.ORG Mon Aug 20 13:06:56 2007 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B9B8C16A420 for ; Mon, 20 Aug 2007 13:06:56 +0000 (UTC) (envelope-from lists_freebsd_org@07.antispam.web-wahnsinn.de) Received: from smtprelay07.ispgateway.de (smtprelay07.ispgateway.de [80.67.29.7]) by mx1.freebsd.org (Postfix) with ESMTP id 28E7F13C4B4 for ; Mon, 20 Aug 2007 13:06:55 +0000 (UTC) (envelope-from lists_freebsd_org@07.antispam.web-wahnsinn.de) Received: (qmail 22979 invoked from network); 20 Aug 2007 13:06:54 -0000 Received: from unknown (HELO [192.168.1.34]) (023415@[84.56.41.234]) (envelope-sender ) by smtprelay07.ispgateway.de (qmail-ldap-1.03) with SMTP; 20 Aug 2007 13:06:54 -0000 From: Tobias Grosser To: Greg Lewis In-Reply-To: <20070816144458.kv2datmjkk4kcok8@webmail.df.eu> References: <1186303666.36623.23.camel@tobias.wg.> <20070815144804.GC5151@misty.eyesbeyond.com> <20070816144458.kv2datmjkk4kcok8@webmail.df.eu> Content-Type: text/plain Date: Mon, 20 Aug 2007 15:06:38 +0200 Message-Id: <1187615198.939.3.camel@tobias.wg.> Mime-Version: 1.0 X-Mailer: Evolution 2.10.3 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org, freebsd-java@freebsd.org Subject: Re: Gcc bugs break java/jdk15 build? [Workaround] X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: lists_freebsd_org@07.antispam.web-wahnsinn.de List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Aug 2007 13:06:56 -0000 Am Donnerstag, den 16.08.2007, 14:44 +0200 schrieb Tobias Grosser: > Zitat von Greg Lewis : > > On Sun, Aug 05, 2007 at 10:47:46AM +0200, Tobias Grosser wrote: > >> since the last gcc import (Update to 4.2) I had problems to compile > >> java/jdk15 (using linux-sun-jdk14/15 and diablo-jdk15), because often > >> the linux-sun-jdk crashed or I got the following errors: > >> > >> ../../../../../src/share/classes/sun/security/util/SignatureFileVerifier.java:22: cannot find > >> symbol > >> symbol : class timestamp > >> location: package sun.security > >> import sun.security.timestamp.TimestampToken; > >> ^ > > > > Can you, and people with similar errors, try again after updating to a > > -CURRENT after the GCC 4.2.1 import. This should fix these errors but > > it would be great to get some confirmation. > > I tried already with the gcc 4.2.1 patch from > (http://people.freebsd.org/~kan/contrib-gcc421.tar.gz), > but the build also breaks with optimization. (I am not sure, if it was > the same error) Without optimization it was working. > When I am back from holiday at Tuesday, I will try again after gcc > import, and post the error log or report success. ;-) I am back again. The java build also breaks with freebsd from yesterday without make.conf, but works if I add "CFLAGS=-O2 -fno-tree-vrp -pipe" to my make.conf From owner-freebsd-java@FreeBSD.ORG Tue Aug 21 07:38:10 2007 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E5EB716A417 for ; Tue, 21 Aug 2007 07:38:10 +0000 (UTC) (envelope-from freebsd@abv.bg) Received: from smtp-out.abv.bg (smtp-out.abv.bg [194.153.145.99]) by mx1.freebsd.org (Postfix) with ESMTP id A80B413C483 for ; Tue, 21 Aug 2007 07:38:10 +0000 (UTC) (envelope-from freebsd@abv.bg) Received: from mail54.abv.bg (mail54.ni.bg [192.168.151.57]) by smtp-out.abv.bg (Postfix) with ESMTP id 238C3EB3B9 for ; Tue, 21 Aug 2007 10:13:04 +0300 (EEST) Received: from mail54.abv.bg (localhost [127.0.0.1]) by mail54.abv.bg (Postfix) with ESMTP id 7C6241A2617 for ; Tue, 21 Aug 2007 10:13:03 +0300 (EEST) Date: Tue, 21 Aug 2007 10:13:03 +0300 (EEST) From: Mario Pavlov To: freebsd-java@freebsd.org Message-ID: <50660101.1136901187680383507.JavaMail.nobody@mail54.abv.bg> MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1251" Content-Transfer-Encoding: 8bit X-Mailer: AbvMail 1.0 X-Originating-IP: 193.26.194.93 Subject: JDK1.6 or JDK6 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Aug 2007 07:38:11 -0000 Hi guys, As far as I know Sun switched the naming convention since JDK1.5/JDK5, these both were correct but next versions should be JDK6, JDK7, JDK8, etc.. So I think that java/jdk1.6 should be renamed to java/jdk6 Please correct me if I'm wrong, maybe there is a reason for the name of the port. Thank you Regards MGP ----------------------------------------------------------------- ZOOM – създай личен сайт, открий нови приятели! http://www.zoom.bg/ ----------------------------------------------------------------- Познай победителя във Формула 1 и спечели награда! http://www.clubf1.net/ From owner-freebsd-java@FreeBSD.ORG Tue Aug 21 08:19:00 2007 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4382916A421 for ; Tue, 21 Aug 2007 08:19:00 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: from drone2.qsi.net.nz (drone2-svc-skyt.qsi.net.nz [202.89.128.2]) by mx1.freebsd.org (Postfix) with ESMTP id B3E6813C467 for ; Tue, 21 Aug 2007 08:18:59 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: (qmail 6422 invoked by uid 0); 21 Aug 2007 08:18:58 -0000 Received: from unknown (HELO chen.org.nz) ([202.89.146.5]) (envelope-sender ) by 0 (qmail-ldap-1.03) with SMTP for ; 21 Aug 2007 08:18:58 -0000 Received: by chen.org.nz (Postfix, from userid 1000) id CABA97E84E; Tue, 21 Aug 2007 20:18:57 +1200 (NZST) Date: Tue, 21 Aug 2007 20:18:57 +1200 From: Jonathan Chen To: Mario Pavlov Message-ID: <20070821081857.GD43674@osiris.chen.org.nz> References: <50660101.1136901187680383507.JavaMail.nobody@mail54.abv.bg> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <50660101.1136901187680383507.JavaMail.nobody@mail54.abv.bg> User-Agent: Mutt/1.4.2.3i Cc: freebsd-java@freebsd.org Subject: Re: JDK1.6 or JDK6 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Aug 2007 08:19:00 -0000 On Tue, Aug 21, 2007 at 10:13:03AM +0300, Mario Pavlov wrote: > Hi guys, > As far as I know Sun switched the naming convention since JDK1.5/JDK5, these both were correct but next versions should be JDK6, JDK7, JDK8, etc.. > So I think that java/jdk1.6 should be renamed to java/jdk6 > Please correct me if I'm wrong, maybe there is a reason for the name of the port. Check out the output of "java -version". As Greg Lewis informed me earlier, the FreeBSD port follows the developers' version numbering, and not Sun's marketing department's. Cheers. -- Jonathan Chen ---------------------------------------------------------------------- Jesus saves. Allah forgives. Cthulu thinks you'd make a nice sandwich. From owner-freebsd-java@FreeBSD.ORG Tue Aug 21 12:48:56 2007 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8501316A421 for ; Tue, 21 Aug 2007 12:48:56 +0000 (UTC) (envelope-from freebsd@abv.bg) Received: from smtp-out.abv.bg (smtp-out.abv.bg [194.153.145.70]) by mx1.freebsd.org (Postfix) with ESMTP id 42A2713C480 for ; Tue, 21 Aug 2007 12:48:56 +0000 (UTC) (envelope-from freebsd@abv.bg) Received: from mail52.abv.bg (mail52.ni.bg [192.168.151.19]) by smtp-out.abv.bg (Postfix) with ESMTP id 3645411EED3; Tue, 21 Aug 2007 15:48:13 +0300 (EEST) Received: from mail52.abv.bg (localhost.localdomain [127.0.0.1]) by mail52.abv.bg (Postfix) with ESMTP id 1FBB08AEC9; Tue, 21 Aug 2007 15:48:53 +0300 (EEST) Date: Tue, 21 Aug 2007 15:48:52 +0300 (EEST) From: Mario Pavlov To: Jonathan Chen Message-ID: <1068777396.1229031187700533128.JavaMail.nobody@mail52.abv.bg> MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1251" Content-Transfer-Encoding: 8bit X-Mailer: AbvMail 1.0 X-Originating-IP: 193.26.194.93 Cc: freebsd-java@freebsd.org Subject: Re: Re: JDK1.6 or JDK6 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Aug 2007 12:48:56 -0000 >On Tue, Aug 21, 2007 at 10:13:03AM +0300, Mario Pavlov wrote: >> Hi guys, >> As far as I know Sun switched the naming convention since JDK1.5/JDK5, these both were correct but next versions should be JDK6, JDK7, JDK8, etc.. >> So I think that java/jdk1.6 should be renamed to java/jdk6 >> Please correct me if I'm wrong, maybe there is a reason for the name of the port. > >Check out the output of "java -version". As Greg Lewis informed me >earlier, the FreeBSD port follows the developers' version numbering, >and not Sun's marketing department's. > >Cheers. >-- >Jonathan Chen >---------------------------------------------------------------------- > Jesus saves. > Allah forgives. > Cthulu thinks you'd make a nice sandwich. > Hi No offence but if this is the reason I don't think that it is very good Java is Sun's software at all and they are in their right to say which is the next version In fact it's very common for the market name to sell/distribute the software for example if the big boss from corporation X have to decide whether the corporation migrates to OS FreeBSD or OS Y to run their super/mega/ultra Java software and he'll see that FreeBSD supports the very "old" Java 1.6 but OS Y supports the very "new" Java 6, what would he decide ? :) It's true that name is not in critical importance for the software to work but if all other accept the name Java 6 why would FreeBSD make difference ? Regards Mario P.S. Sorry for the spam in the bottom of my mails, I can't switch it off, it's because of the web client I use ----------------------------------------------------------------- ZOOM – създай личен сайт, открий нови приятели! http://www.zoom.bg/ ----------------------------------------------------------------- Познай победителя във Формула 1 и спечели награда! http://www.clubf1.net/ From owner-freebsd-java@FreeBSD.ORG Tue Aug 21 13:10:07 2007 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9EB8016A417 for ; Tue, 21 Aug 2007 13:10:07 +0000 (UTC) (envelope-from b.movaqar@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.181]) by mx1.freebsd.org (Postfix) with ESMTP id 5CC2D13C457 for ; Tue, 21 Aug 2007 13:10:07 +0000 (UTC) (envelope-from b.movaqar@gmail.com) Received: by py-out-1112.google.com with SMTP id u77so2680585pyb for ; Tue, 21 Aug 2007 06:10:06 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=GJP+KeQRFaEpXz/pdAiqB57khbXyhEE6PFLvvuSvDeKYDb1B9f43+JzWv27iCwRp5+pJ8UnI3HDLM1JxWPM6UfVCwAAJAC2w6NIlZB7ij0A6ykqqZ3dE8N731F6s0uj01/aC3IYuJ0O3E8TsT18qSRwXt8ryHLzHD1264HMlbGU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=FWQUEoyiOIFIaQ368TWY6g0T6maUNfDk1ytUgjnfx2SlMS5jYR1lE64ZNL9PUo9L6ttqT0E4+o77kDYs6OQyCFd4GUeHcK2UfjQ0FSogLcEwfRBFGsZFM6mVM3NKjjH0Bq0UYTJd8dePaGRy/eLQ+KZE/6gmNtGklqEh9wonl6U= Received: by 10.115.14.1 with SMTP id r1mr1758864wai.1187700224854; Tue, 21 Aug 2007 05:43:44 -0700 (PDT) Received: by 10.114.132.13 with HTTP; Tue, 21 Aug 2007 05:43:44 -0700 (PDT) Message-ID: <6d62f69a0708210543l37fb6fd1n85409d4081807095@mail.gmail.com> Date: Tue, 21 Aug 2007 16:13:44 +0330 From: "Bahman M." To: freebsd-java@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Research license and production use X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Aug 2007 13:10:07 -0000 Hello, Regarding the Sun's research license for jdk16 in ports, I can't run a Java based application (in particular, ADempiere open source ERP http://sf.net/projects/adempiere) on a FreeBSD box -in a production enviroment, Am I right? Thanks, Bahman From owner-freebsd-java@FreeBSD.ORG Tue Aug 21 18:06:27 2007 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CF3C616A41A for ; Tue, 21 Aug 2007 18:06:27 +0000 (UTC) (envelope-from leafy7382@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.228]) by mx1.freebsd.org (Postfix) with ESMTP id 6C9DF13C469 for ; Tue, 21 Aug 2007 18:06:27 +0000 (UTC) (envelope-from leafy7382@gmail.com) Received: by wr-out-0506.google.com with SMTP id 70so1184267wra for ; Tue, 21 Aug 2007 11:06:26 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=kExb7JRRm11wC/u7SRhjbfe0a+PA3gXnQQtUlIgFYS19HzPAggPkYjz7lWr35iVcUbQ1e9kVpsd//OkCPeOMrvYqdu4H0c3+R5nXLg2NBWlEyi0z4Romu9EoYQu5c8YLdX243bR44yy7hTVdcHmuJP0urS2Ofbzs2UIpzLc5XJI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=UCn4GiRewA2IIATWxso6zfzKy7rBdiVWPobIYNnjuQEdAWdPb1JNh6K2t5GR5/W+5nrgRdl/TsjQrIWO7ohj+s6VuZbhhdRkX45PHQqwuvN5T1Q+HBHjoflLSz0YeuU6pRh2AgC8DdZJTKBjSkYN+TDE8Z2HKDV4wlFKtJo9468= Received: by 10.90.81.14 with SMTP id e14mr2498520agb.1187719581625; Tue, 21 Aug 2007 11:06:21 -0700 (PDT) Received: by 10.100.137.3 with HTTP; Tue, 21 Aug 2007 11:06:20 -0700 (PDT) Message-ID: Date: Wed, 22 Aug 2007 02:06:21 +0800 From: "Jiawei Ye" To: "Mario Pavlov" In-Reply-To: <1068777396.1229031187700533128.JavaMail.nobody@mail52.abv.bg> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1068777396.1229031187700533128.JavaMail.nobody@mail52.abv.bg> Cc: freebsd-java@freebsd.org Subject: Re: Re: JDK1.6 or JDK6 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Aug 2007 18:06:27 -0000 On 8/21/07, Mario Pavlov wrote: > Hi > No offence but if this is the reason I don't think that it is very good > Java is Sun's software at all > and they are in their right to say which is the next version > In fact it's very common for the market name to sell/distribute the software > for example if the big boss from corporation X have to decide whether the corporation migrates to OS FreeBSD or OS Y to run their super/mega/ultra Java software and he'll see that FreeBSD supports the very "old" Java 1.6 but OS Y supports the very "new" Java 6, what would he decide ? :) > > It's true that name is not in critical importance for the software to work but if all other accept the name Java 6 why would FreeBSD make difference ? > > Regards > Mario Well, Solaris 9 has a different version number than just "9", I think it is both 2.9 and 5.9. Even Windows XP isn't versioned as "XP", but Windows NT 5.1 (please correct me if I am wrong). So there is a distinction between marketing brandname and the actual engineering version number. I am not saying that using JDK/JRE 6 is wrong, but in our ports context, I think using the engineering version number would be more appropriate. Just my 2 cents, Cheers, Jiawei Ye -- "If it looks like a duck, walks like a duck, and quacks like a duck, then to the end user it's a duck, and end users have made it pretty clear they want a duck; whether the duck drinks hot chocolate or coffee is irrelevant." From owner-freebsd-java@FreeBSD.ORG Wed Aug 22 17:59:10 2007 Return-Path: Delivered-To: java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5B0A916A41A for ; Wed, 22 Aug 2007 17:59:10 +0000 (UTC) (envelope-from freebsd@spatula.net) Received: from turing.morons.org (turing.morons.org [208.96.51.42]) by mx1.freebsd.org (Postfix) with ESMTP id 48BD113C465 for ; Wed, 22 Aug 2007 17:59:10 +0000 (UTC) (envelope-from freebsd@spatula.net) Received: by turing.morons.org (Postfix, from userid 1001) id 0E79517030; Wed, 22 Aug 2007 10:59:08 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by turing.morons.org (Postfix) with ESMTP id 0B5E31702C for ; Wed, 22 Aug 2007 10:59:08 -0700 (PDT) Date: Wed, 22 Aug 2007 10:59:07 -0700 (PDT) From: Nick Johnson X-X-Sender: spatula@turing To: java@freebsd.org Message-ID: <20070822104335.L82369@turing> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: Subject: 1.5 ignoring networkaddress.cache property? X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Aug 2007 17:59:10 -0000 I've noticed that 1.5 seems to be ignoring the value set for networkaddress.cache.negative.ttl in $JAVA_HOME/jre/lib/security/java.policy when a DNS request times out. In one of my forms I validate user-provided URLs by trying to fetch them and ensuring I get a reasonable response (e.g., not 404, 403, 500, etc). If the DNS request for the hostname in the URL times out once, the JRE never tries a lookup again. I've verified that it isn't asking by snooping DNS traffic on my loopback with tcpdump. Positive lookups do cache properly. Negative lookups that *don't* time out (ie, they get an NXDOMAIN response) also seem to obey the networkaddress.cache.negative.ttl property. So the behaviour seems to be that a DNS timeout is cached forever, whereas postive or negative responses are cached according to networkaddress.cache.*. Nick -- "Courage isn't just a matter of not being frightened, you know. It's being afraid and doing what you have to do anyway." Doctor Who - Planet of the Daleks This message has been brought to you by Nick Johnson 2.3b1 and the number 6. http://healerNick.com/ http://morons.org/ http://spatula.net/ From owner-freebsd-java@FreeBSD.ORG Thu Aug 23 02:19:45 2007 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7380516A418 for ; Thu, 23 Aug 2007 02:19:45 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 2DC6713C483 for ; Thu, 23 Aug 2007 02:19:45 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.8/8.13.4) with ESMTP id l7N2ImTl024399; Wed, 22 Aug 2007 20:18:48 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Wed, 22 Aug 2007 20:18:51 -0600 (MDT) Message-Id: <20070822.201851.-1889957000.imp@bsdimp.com> To: se@freebsd.org From: "M. Warner Losh" In-Reply-To: <20070819073953.GA36594@Gatekeeper.FreeBSD.org> References: <864piweemc.fsf@santinel.home.ua> <20070819.120136.41629169.ken@tydfam.jp> <20070819073953.GA36594@Gatekeeper.FreeBSD.org> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Wed, 22 Aug 2007 20:18:51 -0600 (MDT) Cc: ken@tydfam.jp, anrays@gmail.com, freebsd-current@freebsd.org, lists_freebsd_org@07.antispam.web-wahnsinn.de, freebsd-java@freebsd.org Subject: Re: Gcc bugs break java/jdk15 build? [Workaround] X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Aug 2007 02:19:45 -0000 In message: <20070819073953.GA36594@Gatekeeper.FreeBSD.org> Stefan E=DFer writes: : On 2007-08-19 12:01 +0900, Ken Yamada wrote: : > Does this mean that GCC 4.2.1 does not solve "loop optimization b= ug" = : > pointed out by Andrey Chernov (http://docs.freebsd.org/cgi/getmsg= .cgi?fetch=3D282888+0+archive/2007/freebsd-current/20070701.freebsd-cur= rent) on 4.2.0? : > = : > Is it a good idea of adding -fno-tree-vrp to CFLAGS in /etc/make.= conf = : > to avoid this optimization bug for all compilation? (BTW, I leav= e -O3 = : > of CFLAGS as is in make.conf and just added -fno-tree-vrp to the = end of = : > the line.) : = : I did just that (added -fno-tree-vrp to CFLAGS) after it was found : that gcc-4.2 had the optimizer bug, and have continued to build my : system with -O2 (or other optimization levels as required). This = : seems to work just fine (no problems with ports that are not working : when built with a plain -O2). I had suggested to make -fno-tree-vrp : the default for our CC (could be overridden on the command line, but : would allow to use all -O levels without being hit by the compiler : bug; but it appears that nobody else liked the idea at that time, = : i.e. no response at all ...). Actually, it was added to the tree and then backed out because it broke the upgrade path. Warner From owner-freebsd-java@FreeBSD.ORG Thu Aug 23 17:58:07 2007 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C6F8216A46B for ; Thu, 23 Aug 2007 17:58:07 +0000 (UTC) (envelope-from carloshpf@oi.com.br) Received: from smtp6.oi.com.br (smtp6.oi.com.br [200.222.115.69]) by mx1.freebsd.org (Postfix) with ESMTP id 36D0A13C46E for ; Thu, 23 Aug 2007 17:58:06 +0000 (UTC) (envelope-from carloshpf@oi.com.br) Received: from smtp2.oi.com.br (smtp2.oi.com.br [200.222.115.17]) by smtp6.oi.com.br (Postfix) with ESMTP id 3B599A3D41 for ; Thu, 23 Aug 2007 14:32:55 -0300 (BRT) Received: from smtp2.oi.com.br (localhost.localdomain [127.0.0.1]) by smtp2.oi.com.br (Postfix) with ESMTP id B9F617000176 for ; Thu, 23 Aug 2007 14:32:39 -0300 (BRT) Received: from [192.168.0.152] (unknown [189.12.147.129]) by smtp2.oi.com.br (Postfix) with ESMTP id 352B57000174 for ; Thu, 23 Aug 2007 14:32:28 -0300 (BRT) Message-ID: <46CDC4A2.3080102@oi.com.br> Date: Thu, 23 Aug 2007 14:32:18 -0300 From: Carlos Porto Filho User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: freebsd-java@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: netbeans X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Aug 2007 17:58:07 -0000 when i try to create a new project i only have the option of a java project with existing Ant Script, why is that? (i already set the jdkhome). tia From owner-freebsd-java@FreeBSD.ORG Thu Aug 23 18:25:51 2007 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5F1CE16A418 for ; Thu, 23 Aug 2007 18:25:51 +0000 (UTC) (envelope-from freebsd@spatula.net) Received: from turing.morons.org (turing.morons.org [208.96.51.42]) by mx1.freebsd.org (Postfix) with ESMTP id 4F53513C46B for ; Thu, 23 Aug 2007 18:25:51 +0000 (UTC) (envelope-from freebsd@spatula.net) Received: by turing.morons.org (Postfix, from userid 1001) id EE6CC17033; Thu, 23 Aug 2007 11:25:48 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by turing.morons.org (Postfix) with ESMTP id EB67417030 for ; Thu, 23 Aug 2007 11:25:48 -0700 (PDT) Date: Thu, 23 Aug 2007 11:25:48 -0700 (PDT) From: Nick Johnson X-X-Sender: spatula@turing To: freebsd-java@freebsd.org Message-ID: <20070823111051.N82369@turing> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: making nio use kevent/kqueue X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Aug 2007 18:25:51 -0000 I think there could be a considerable performance gain if java.nio were tweaked to use kevent/kqueue(2) as opposed to poll(2). It looks like the files that would need to be touched for this are: j2se/src/solaris/native/sun/nio/ch/ DevPollArrayWrapper.c (not sure about this one actually since FreeBSD doesn't use /dev/poll) PollArrayWrapper.c SocketChannelImpl.c Does that sound about right? I see select(2) and poll(2) used in other places as well, though outside of nio where they're likely to show the greatest benefit. Are there any caveats or "gotchas" I should be aware if should I decide to take some free time to try to come up with a kevent patch for nio? Also, is there a quicker way to build a JVM when just changing a file or two like this? It would be lousy to have to wait 2 hours to build after every minor change... Nick -- "Courage isn't just a matter of not being frightened, you know. It's being afraid and doing what you have to do anyway." Doctor Who - Planet of the Daleks This message has been brought to you by Nick Johnson 2.3b1 and the number 6. http://healerNick.com/ http://morons.org/ http://spatula.net/ From owner-freebsd-java@FreeBSD.ORG Thu Aug 23 19:12:57 2007 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9777616A418 for ; Thu, 23 Aug 2007 19:12:57 +0000 (UTC) (envelope-from freebsd@spatula.net) Received: from turing.morons.org (turing.morons.org [208.96.51.42]) by mx1.freebsd.org (Postfix) with ESMTP id 8629013C459 for ; Thu, 23 Aug 2007 19:12:57 +0000 (UTC) (envelope-from freebsd@spatula.net) Received: by turing.morons.org (Postfix, from userid 1001) id 632C717037; Thu, 23 Aug 2007 12:12:55 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by turing.morons.org (Postfix) with ESMTP id 6270D17033 for ; Thu, 23 Aug 2007 12:12:55 -0700 (PDT) Date: Thu, 23 Aug 2007 12:12:55 -0700 (PDT) From: Nick Johnson X-X-Sender: spatula@turing To: freebsd-java@freebsd.org In-Reply-To: <20070823111051.N82369@turing> Message-ID: <20070823114932.C82369@turing> References: <20070823111051.N82369@turing> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: making nio use kevent/kqueue X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Aug 2007 19:12:57 -0000 Looking at it a bit more, it looks like the "right" thing to do is to create a KeventArrayWrapper, possibly based on the EPollArrayWrapper.c so that multiple ready FDs can be returned at one time. That means creating a KeventArrayWrapper.java based on j2se/src/solaris/classes/sun/nio/ch/EPollArrayWrapper.java as well as a KeventSelectorImpl.java based on EPollSelectorImpl.java and KeventSelectorProvider.java based on EPollSelectorProvider.java. It also means modifying src/solaris/classes/sun/nio/ch/DefaultSelectorProvider.java to select the KeventSelectorProvider and possibly tweaking some makefiles to ensure that everything gets built, including: make/java/nio/Makefile make/java/nio/mapfile* (do we end up using mapfile-linux or mapfile-solaris?) Nick On Thu, 23 Aug 2007, Nick Johnson wrote: > I think there could be a considerable performance gain if java.nio were > tweaked to use kevent/kqueue(2) as opposed to poll(2). > > It looks like the files that would need to be touched for this are: > > j2se/src/solaris/native/sun/nio/ch/ > DevPollArrayWrapper.c (not sure about this one actually since > FreeBSD doesn't use /dev/poll) > PollArrayWrapper.c > SocketChannelImpl.c > > Does that sound about right? I see select(2) and poll(2) used in other > places as well, though outside of nio where they're likely to show the > greatest benefit. > > Are there any caveats or "gotchas" I should be aware if should I decide to > take some free time to try to come up with a kevent patch for nio? > > Also, is there a quicker way to build a JVM when just changing a file or > two like this? It would be lousy to have to wait 2 hours to build after > every minor change... > > Nick > > -- "Courage isn't just a matter of not being frightened, you know. It's being afraid and doing what you have to do anyway." Doctor Who - Planet of the Daleks This message has been brought to you by Nick Johnson 2.3b1 and the number 6. http://healerNick.com/ http://morons.org/ http://spatula.net/ From owner-freebsd-java@FreeBSD.ORG Thu Aug 23 19:57:28 2007 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CF48916A417 for ; Thu, 23 Aug 2007 19:57:28 +0000 (UTC) (envelope-from dudu@dudu.ro) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.187]) by mx1.freebsd.org (Postfix) with ESMTP id 6E4B013C442 for ; Thu, 23 Aug 2007 19:57:28 +0000 (UTC) (envelope-from dudu@dudu.ro) Received: by fk-out-0910.google.com with SMTP id b27so607686fka for ; Thu, 23 Aug 2007 12:57:27 -0700 (PDT) Received: by 10.82.158.12 with SMTP id g12mr4852981bue.1187899046923; Thu, 23 Aug 2007 12:57:26 -0700 (PDT) Received: by 10.82.162.16 with HTTP; Thu, 23 Aug 2007 12:57:26 -0700 (PDT) Message-ID: Date: Thu, 23 Aug 2007 21:57:26 +0200 From: "Vlad GALU" To: "Nick Johnson" In-Reply-To: <20070823114932.C82369@turing> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070823111051.N82369@turing> <20070823114932.C82369@turing> Cc: freebsd-java@freebsd.org Subject: Re: making nio use kevent/kqueue X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Aug 2007 19:57:28 -0000 On 8/23/07, Nick Johnson wrote: > Looking at it a bit more, it looks like the "right" thing to do is to > create a KeventArrayWrapper, possibly based on the EPollArrayWrapper.c so > that multiple ready FDs can be returned at one time. > > That means creating a KeventArrayWrapper.java based on > j2se/src/solaris/classes/sun/nio/ch/EPollArrayWrapper.java as well as a > KeventSelectorImpl.java based on EPollSelectorImpl.java and > KeventSelectorProvider.java based on EPollSelectorProvider.java. > > It also means modifying > src/solaris/classes/sun/nio/ch/DefaultSelectorProvider.java to select the > KeventSelectorProvider and possibly tweaking some makefiles to ensure that > everything gets built, including: > > make/java/nio/Makefile > make/java/nio/mapfile* (do we end up using mapfile-linux or > mapfile-solaris?) > > Nick > > On Thu, 23 Aug 2007, Nick Johnson wrote: > > > I think there could be a considerable performance gain if java.nio were > > tweaked to use kevent/kqueue(2) as opposed to poll(2). > > > > It looks like the files that would need to be touched for this are: > > > > j2se/src/solaris/native/sun/nio/ch/ > > DevPollArrayWrapper.c (not sure about this one actually since > > FreeBSD doesn't use /dev/poll) > > PollArrayWrapper.c > > SocketChannelImpl.c > > > > Does that sound about right? I see select(2) and poll(2) used in other > > places as well, though outside of nio where they're likely to show the > > greatest benefit. > > > > Are there any caveats or "gotchas" I should be aware if should I decide to > > take some free time to try to come up with a kevent patch for nio? > > > > Also, is there a quicker way to build a JVM when just changing a file or > > two like this? It would be lousy to have to wait 2 hours to build after > > every minor change... IIRC, the OS-X Java uses kqueue already. Furthermore, classpath (http://www.gnu.org/software/classpath/) supposedly has a kqueue nio implementation. I haven't tried any of the two aforementioned solutions, but it's definitely something I'll want to take a look at in the near future. HTH :) > > > > Nick > > > > > > -- > "Courage isn't just a matter of not being frightened, you know. It's being > afraid and doing what you have to do anyway." > Doctor Who - Planet of the Daleks > This message has been brought to you by Nick Johnson 2.3b1 and the number 6. > http://healerNick.com/ http://morons.org/ http://spatula.net/ > _______________________________________________ > freebsd-java@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org" > -- If it's there, and you can see it, it's real. If it's not there, and you can see it, it's virtual. If it's there, and you can't see it, it's transparent. If it's not there, and you can't see it, you erased it. From owner-freebsd-java@FreeBSD.ORG Fri Aug 24 01:10:02 2007 Return-Path: Delivered-To: freebsd-java@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1D7E716A419 for ; Fri, 24 Aug 2007 01:10:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id F185413C457 for ; Fri, 24 Aug 2007 01:10:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l7O1A1fV035407 for ; Fri, 24 Aug 2007 01:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l7O1A1kb035406; Fri, 24 Aug 2007 01:10:01 GMT (envelope-from gnats) Resent-Date: Fri, 24 Aug 2007 01:10:01 GMT Resent-Message-Id: <200708240110.l7O1A1kb035406@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-java@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Nick Johnson Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A9C2B16A417 for ; Fri, 24 Aug 2007 01:09:03 +0000 (UTC) (envelope-from root@turing.morons.org) Received: from turing.morons.org (turing.morons.org [208.96.51.42]) by mx1.freebsd.org (Postfix) with ESMTP id 99C8813C458 for ; Fri, 24 Aug 2007 01:09:03 +0000 (UTC) (envelope-from root@turing.morons.org) Received: by turing.morons.org (Postfix, from userid 0) id 8352B1704B; Thu, 23 Aug 2007 18:09:01 -0700 (PDT) Message-Id: <20070824010901.8352B1704B@turing.morons.org> Date: Thu, 23 Aug 2007 18:09:01 -0700 (PDT) From: Nick Johnson To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: java/115773: java.nio channel selectors should use kqueue/kevent instead of poll X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Nick Johnson List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Aug 2007 01:10:02 -0000 >Number: 115773 >Category: java >Synopsis: java.nio channel selectors should use kqueue/kevent instead of poll >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-java >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Aug 24 01:10:01 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Nick Johnson >Release: FreeBSD 6.2-STABLE i386 >Organization: morons.org >Environment: System: FreeBSD turing.morons.org 6.2-STABLE FreeBSD 6.2-STABLE #0: Sun Jan 21 16:53:54 PST 2007 root@turing.morons.org:/usr/src/sys/i386/compile/TURING i386 java version "1.5.0_12-p6" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_12-p6-root_29_jul_2007_13_27) Java HotSpot(TM) Client VM (build 1.5.0_12-p6-root_29_jul_2007_13_27, mixed mode) >Description: The FreeBSD Java port uses the poll(2) interface to implement java.nio channels. For high performance, especially when large numbers of descriptors are involved, it would be nice to use kqueue(2) / kevent(2) instead. >How-To-Repeat: Currently channel selection for java.nio involves these files in the JVM: j2se/src/share/classes/sun/nio/ch/AbstractPollArrayWrapper.java j2se/src/solaris/classes/sun/nio/ch/PollArrayWrapper.java j2se/src/solaris/native/sun/nio/ch/PollArrayWrapper.c j2se/src/share/classes/sun/nio/ch/AbstractPollSelectorImpl.java j2se/src/solaris/classes/sun/nio/ch/PollSelectorImpl.java j2se/src/solaris/classes/sun/nio/ch/DefaultSelectorProvider.java j2se/src/share/classes/sun/nio/ch/PollSelectorProvider.java j2se/src/share/classes/sun/nio/ch/DatagramChannelImpl.java j2se/src/share/classes/sun/nio/ch/ServerSocketChannelImpl.java j2se/src/share/classes/sun/nio/ch/SocketChannelImpl.java j2se/src/solaris/classes/sun/nio/ch/SinkChannelImpl.java j2se/src/solaris/classes/sun/nio/ch/SourceChannelImpl.java As well as these files used for building: j2se/make/java/nio/Makefile j2se/make/java/nio/mapfile-solaris >Fix: I think the cleanest thing may be to create a KEventArrayWrapper.c, KEventArrayWrapper.java, KEventSelectorProvider.java and KEventSelectorImpl.java to handle the low-level kevent(2) functions. The Linux EPoll classes and native code could be examined for some ideas on how to structure these classes. Then DatagramChannelImpl.java, ServerSocketChannelImpl.java, SocketChannelImpl.java, SinkChannelImpl.java, SourceChannelImpl.java and DefaultSelectorProvider.java would need to be updated to point at the new KEvent* handlers. The AbstractPoll* stuff could probably be ignored / done away with; it looks like it was done that way to provide for both DevPoll* and Poll*. The Linux EPoll classes do not extend from AbstractPoll*. An alternative might be to just modify the polling classes to wrap calls to use kevent(2), but this would be fairly messy and possibly just as much work. If I have some time I may take a stab at this, but if someone else is interested, please feel free to jump on it- don't wait on me. >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-java@FreeBSD.ORG Fri Aug 24 04:42:29 2007 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0FF8416A417 for ; Fri, 24 Aug 2007 04:42:29 +0000 (UTC) (envelope-from reliance.gi@gmail.com) Received: from qb-out-0506.google.com (qb-out-0506.google.com [72.14.204.230]) by mx1.freebsd.org (Postfix) with ESMTP id BBAA513C469 for ; Fri, 24 Aug 2007 04:42:28 +0000 (UTC) (envelope-from reliance.gi@gmail.com) Received: by qb-out-0506.google.com with SMTP id a10so664353qbd for ; Thu, 23 Aug 2007 21:42:28 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:from:to:subject:date:mime-version:content-type:x-priority:x-msmail-priority:x-mailer:x-mimeole; b=XqTxaFuNJj80OiX5ZcLoRqv4EvgbwiFrhfApZ8CsKhZ/by96lyevNFjfjyVvufp98zFiPwIFT2E2O0je5rqXejwpyD7znTaK5VXWyGUYtiksn8tsVJdBsUAyTtBV1GsU29KkWV2O75ctzf6uxSICllQNikP8bhuSJPja6MMp4xU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:from:to:subject:date:mime-version:content-type:x-priority:x-msmail-priority:x-mailer:x-mimeole; b=TPaS4QM4IuaXUyQQwqsm+bY6jMEO/iyAV/HOKX9bF2b6cPbZEoJHBz+7wiL9Q0isIq7XPhQvN+8m0FqqtfSHwLt3Sdm9MVeukki4PN29Q2igfatIxSIqdTOED0DtOuopmYRbyXg59d1l7c48dAxcLi8Q0vE9pR3pqZMRXWsY4tM= Received: by 10.114.107.19 with SMTP id f19mr641505wac.1187929721304; Thu, 23 Aug 2007 21:28:41 -0700 (PDT) Received: from intech5 ( [125.63.77.194]) by mx.google.com with ESMTPS id k35sm2819167waf.2007.08.23.21.28.39 (version=SSLv3 cipher=RC4-MD5); Thu, 23 Aug 2007 21:28:40 -0700 (PDT) Message-ID: <0b3c01c7e607$432116b0$3100a8c0@intech5> From: "Sonal" To: Date: Wed, 22 Aug 2007 14:59:49 +0530 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Pay only 3 year after 30 years get 9,83,45,164/ X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Aug 2007 04:42:29 -0000 Hello,=20 This is an excellent policy "Life Time Super pension", where you have to = pay only Rs.24,000.00 for 3 years and get Rs.6,34,54,369.00 /- after 30 years. =20 addition to this give the Tax Benefit under Sec:80 C. Sec : 80 c=20 says that an individual can invest upto Rs.1 Lac per annum in different Tax Saving Instruments and the Entire 1 Lac=20 WILL BE DEDUCTED FROM THE TAXABLE INCOME.=20 That means, you can save upto 30% of your Investment So please hurry up............... Name of the Policy - LIFE TIME. Name of the Policy - LIFE TIME. Minimum Term - 3 Years. Minimum Premium - Rs.24000 per annum. Tax Benefit - Full amount invested will be deducted from your Taxable Income. ( ie., Upto 30% Tax Benefit) Pay only 3 year after 30 years 9,83,45,164/-=20 Get Free Health Insurance aupto 1 Lacks Free For more information and services Send your address age: and Tel no. to=20 icicipru.li@gmail.com or reliance.gi@gmail.com