From henri.gomez at gmail.com Mon Apr 23 03:17:42 2012 From: henri.gomez at gmail.com (Henri Gomez) Date: Mon, 23 Apr 2012 12:17:42 +0200 Subject: Oracle Java 7 Developper Preview for OSX vs OpenJDK 7 Message-ID: Hi to all, I tested Oracle Java 7 for OSX today (Developper Preview release b21 based on u4). I could see a 32/64bits aware JVM is available (-d32/-d64 & -XX:+UseCompressedOop) whereas it's no more case for OpenJDK 7 since Mac OSX Port has been merged into u4 branch. Putting back 32/64bits support in OpenJDK 7 for OSX was a point discussed many time on this list and macosx-port list but is still in pending state. Since it appears to be technically possible, could we have feedbacks and informations on how to bring dual mode VM to stock OpenJDK7 for OSX ? Cheers From heinz at javaspecialists.eu Mon Apr 23 03:24:25 2012 From: heinz at javaspecialists.eu (Dr Heinz M. Kabutz) Date: Mon, 23 Apr 2012 13:24:25 +0300 Subject: Oracle Java 7 Developper Preview for OSX vs OpenJDK 7 In-Reply-To: References: Message-ID: <4F952DD9.7010309@javaspecialists.eu> 32-bit support is very useful for research purposes - I would definitely welcome having it back. Otherwise it means having to also have Java 6 available, just for testing purposes. Regards Heinz -- Dr Heinz M. Kabutz (PhD CompSci) Author of "The Java(tm) Specialists' Newsletter" Sun Java Champion IEEE Certified Software Development Professional http://www.javaspecialists.eu Tel: +30 69 75 595 262 Skype: kabutz On 4/23/12 1:17 PM, Henri Gomez wrote: > Hi to all, > > I tested Oracle Java 7 for OSX today (Developper Preview release b21 > based on u4). > > I could see a 32/64bits aware JVM is available (-d32/-d64 & > -XX:+UseCompressedOop) whereas it's no more case for OpenJDK 7 since > Mac OSX Port has been merged into u4 branch. > > Putting back 32/64bits support in OpenJDK 7 for OSX was a point > discussed many time on this list and macosx-port list but is still in > pending state. > > Since it appears to be technically possible, could we have feedbacks > and informations on how to bring dual mode VM to stock OpenJDK7 for > OSX ? > > Cheers > > From henri.gomez at gmail.com Mon Apr 23 09:04:40 2012 From: henri.gomez at gmail.com (Henri Gomez) Date: Mon, 23 Apr 2012 18:04:40 +0200 Subject: Oracle Java 7 Developper Preview for OSX vs OpenJDK 7 In-Reply-To: <4F952DD9.7010309@javaspecialists.eu> References: <4F952DD9.7010309@javaspecialists.eu> Message-ID: 2012/4/23 Dr Heinz M. Kabutz : > 32-bit support is very useful for research purposes - I would definitely > welcome having it back. ?Otherwise it means having to also have Java 6 > available, just for testing purposes. I patched OSX build process a bit and I've got now a 32/64bits VM working on OpenJDK 7 : java -d32 -version openjdk version "1.7.0-jdk7u4-b21" OpenJDK Runtime Environment (build 1.7.0-jdk7u4-b21-20120423) OpenJDK Server VM (build 23.0-b21, mixed mode) java -d64 -version openjdk version "1.7.0-jdk7u4-b21" OpenJDK Runtime Environment (build 1.7.0-jdk7u4-b21-20120423) OpenJDK 64-Bit Server VM (build 23.0-b21, mixed mode) It was mainly uncomments of features already included in OpenJDK 7 trunk. Patch available here : http://openjdk-osx-build.googlecode.com/svn/trunk/patches-jdk7u-osx/universal-build.patch Thanks to review and apply if interested, openjdk-osx-build packages will use it. From henri.gomez at gmail.com Mon Apr 23 10:13:00 2012 From: henri.gomez at gmail.com (Henri Gomez) Date: Mon, 23 Apr 2012 19:13:00 +0200 Subject: Oracle Java 7 Developper Preview for OSX vs OpenJDK 7 In-Reply-To: <0DB24238-2533-4283-B9F1-BD8E9015F669@oracle.com> References: <4F952DD9.7010309@javaspecialists.eu> <0DB24238-2533-4283-B9F1-BD8E9015F669@oracle.com> Message-ID: > -server KNOWN > -client IGNORE > > Should that be '-client KNOWN' ? I thought the 32-bit JVM is a client-tuned hotspot. I could be wrong, based on the output of 'java -d32 version'. I just made a copy off x86-64 file into universal, so may be there is miss. I checked with Oracle Java 7 for OSX, same contents : # List of JVMs that can be used as an option to java, javac, etc. # Order is important -- first in this list is the default JVM. # NOTE that this both this file and its format are UNSUPPORTED and # WILL GO AWAY in a future release. # # You may also select a JVM in an arbitrary location with the # "-XXaltjvm=" option, but that too is unsupported # and may not be available in a future release. # -server KNOWN -client IGNORE -hotspot ERROR -classic WARN -native ERROR -green ERROR May be a mistake ? From henri.gomez at gmail.com Mon Apr 23 14:28:58 2012 From: henri.gomez at gmail.com (Henri Gomez) Date: Mon, 23 Apr 2012 23:28:58 +0200 Subject: Oracle Java 7 Developper Preview for OSX vs OpenJDK 7 In-Reply-To: References: <4F952DD9.7010309@javaspecialists.eu> Message-ID: > I patched OSX build process a bit and I've got now a 32/64bits VM > working on OpenJDK 7 : > > java -d32 -version > openjdk version "1.7.0-jdk7u4-b21" > OpenJDK Runtime Environment (build 1.7.0-jdk7u4-b21-20120423) > OpenJDK Server VM (build 23.0-b21, mixed mode) > > java -d64 -version > openjdk version "1.7.0-jdk7u4-b21" > OpenJDK Runtime Environment (build 1.7.0-jdk7u4-b21-20120423) > OpenJDK 64-Bit Server VM (build 23.0-b21, mixed mode) > > It was mainly uncomments of features already included in OpenJDK 7 trunk. > > Patch available here : > > http://openjdk-osx-build.googlecode.com/svn/trunk/patches-jdk7u-osx/universal-build.patch > > Thanks to review and apply if interested, openjdk-osx-build packages > will use it. Forgot to mention Test Drive package location : http://openjdk-osx-build.googlecode.com/files/OpenJDK-OSX-1.7-x64-u4-jdk-jdk7u4-b21-20120423.dmg Feedbacks welcomed From henri.gomez at gmail.com Mon Apr 23 15:01:27 2012 From: henri.gomez at gmail.com (Henri Gomez) Date: Tue, 24 Apr 2012 00:01:27 +0200 Subject: Oracle Java 7 Developper Preview for OSX vs OpenJDK 7 In-Reply-To: References: <4F952DD9.7010309@javaspecialists.eu> <0DB24238-2533-4283-B9F1-BD8E9015F669@oracle.com> Message-ID: > I think you did the right thing with the name of the file and directory, but > the content of jvm.cfg should be slightly different. > > For the Oracle Java 7 release this is correct because there's only a 64-bit > JDK.?For a universal JDK, I think -client and -server should both be valid > choices. Oracle Java 7 release support both -d32 and -d64 in command line but still report a 64bits VM java -d32 -version java version "1.7.0_04-ea" Java(TM) SE Runtime Environment (build 1.7.0_04-ea-b225) Java HotSpot(TM) 64-Bit Server VM (build 23.0-b09, mixed mode) OpenJDK 7 64bits didn't support -d32 by default (ie: in non universal mode) > # List of JVMs that can be used as an option to java, javac, etc. > # Order is important -- first in this list is the default JVM. > # NOTE that this both this file and its format are UNSUPPORTED and > # WILL GO AWAY in a future release. > -server KNOWN > -client KNOWN > > -hotspot ERROR > -classic WARN > -native ERROR > -green ERROR > > I apologize for just making random suggestions, but I'm not in a position to > test it out right now. I updated jvm.cfg under jre/lib/jvm.cfg and switching from -client IGNORE to -client KNOWN but didn't see any changes From henri.gomez at gmail.com Mon Apr 23 21:49:46 2012 From: henri.gomez at gmail.com (Henri Gomez) Date: Tue, 24 Apr 2012 06:49:46 +0200 Subject: Oracle Java 7 Developper Preview for OSX vs OpenJDK 7 In-Reply-To: <4F95D446.5000504@javaspecialists.eu> References: <4F952DD9.7010309@javaspecialists.eu> <0DB24238-2533-4283-B9F1-BD8E9015F669@oracle.com> <4F95D446.5000504@javaspecialists.eu> Message-ID: easy to fix : change in jre/lib/jvm.cfg -client IGNORE -> -client KNOWN 2012/4/24 Dr Heinz M. Kabutz : > Thanks Henri. > > In OpenJDK 7 for OSX, java -d32 -client now runs in 32-bit mode, but with > the -server JVM. > > Is it possible to also enable the option to select the client JVM in 32-bit > mode, same as we have with 1.6.0 at the moment? > > And would it be possible to do this for OpenJDK 8 also? > > Regards > > Heinz > -- > Dr Heinz M. Kabutz (PhD CompSci) > Author of "The Java(tm) Specialists' Newsletter" > Sun Java Champion > IEEE Certified Software Development Professional > http://www.javaspecialists.eu > Tel: +30 69 75 595 262 > Skype: kabutz > > > > On 4/24/12 1:01 AM, Henri Gomez wrote: > > I think you did the right thing with the name of the file and directory, but > the content of jvm.cfg should be slightly different. > > For the Oracle Java 7 release this is correct because there's only a 64-bit > JDK.?For a universal JDK, I think -client and -server should both be valid > choices. > > > Oracle Java 7 release support both -d32 and -d64 in command line but > still report a 64bits VM > > java -d32 -version > java version "1.7.0_04-ea" > Java(TM) SE Runtime Environment (build 1.7.0_04-ea-b225) > Java HotSpot(TM) 64-Bit Server VM (build 23.0-b09, mixed mode) > > OpenJDK 7 64bits didn't support -d32 by default (ie: in non universal mode) > > > > # List of JVMs that can be used as an option to java, javac, etc. > # Order is important -- first in this list is the default JVM. > # NOTE that this both this file and its format are UNSUPPORTED and > # WILL GO AWAY in a future release. > -server KNOWN > -client KNOWN > > -hotspot ERROR > -classic WARN > -native ERROR > -green ERROR > > > > > > I apologize for just making random suggestions, but I'm not in a position to > test it out right now. > > > I updated jvm.cfg under jre/lib/jvm.cfg and switching from -client > IGNORE to -client KNOWN but didn't see any changes > > From henri.gomez at gmail.com Mon Apr 23 22:56:02 2012 From: henri.gomez at gmail.com (Henri Gomez) Date: Tue, 24 Apr 2012 07:56:02 +0200 Subject: Oracle Java 7 Developper Preview for OSX vs OpenJDK 7 In-Reply-To: <4F95D446.5000504@javaspecialists.eu> References: <4F952DD9.7010309@javaspecialists.eu> <0DB24238-2533-4283-B9F1-BD8E9015F669@oracle.com> <4F95D446.5000504@javaspecialists.eu> Message-ID: > Is it possible to also enable the option to select the client JVM in 32-bit > mode, same as we have with 1.6.0 at the moment? I should check, for now -client select a client VM and -d32 -client select a 32 bits VM client VM > And would it be possible to do this for OpenJDK 8 also? It could be back ported I guess, but we'll be more comfortable if provided patch was reviewed and applied to OpenJDK 7 first. From henri.gomez at gmail.com Tue Apr 24 00:49:40 2012 From: henri.gomez at gmail.com (Henri Gomez) Date: Tue, 24 Apr 2012 09:49:40 +0200 Subject: Oracle Java 7 Developper Preview for OSX vs OpenJDK 7 In-Reply-To: <4F964660.6090206@javaspecialists.eu> References: <4F952DD9.7010309@javaspecialists.eu> <0DB24238-2533-4283-B9F1-BD8E9015F669@oracle.com> <4F95D446.5000504@javaspecialists.eu> <4F964660.6090206@javaspecialists.eu> Message-ID: > Thanks Henri, now it works. > > BTW, there was a snafu in that jvm.cfg file in the latest bundle - the > entire file contents were duplicated. I'll fix it :)