From aph at redhat.com Mon Nov 2 01:32:05 2009 From: aph at redhat.com (Andrew Haley) Date: Mon, 02 Nov 2009 09:32:05 +0000 Subject: Howto implement configure/makefile checking for JNI headers? In-Reply-To: <194f62550910311045v73e9e1c2g94c1135ea6064992@mail.gmail.com> References: <194f62550910311045v73e9e1c2g94c1135ea6064992@mail.gmail.com> Message-ID: <4AEEA715.2050502@redhat.com> Clemens Eisserer wrote: > I would like to add a Java binding to an existing project written in > C, however I am totally unexperienced with make/configure. > Any hints, or even better snippits, how I could search for JNI headers > during configure, allow the variable to be configureable with a saned > efault value? It's hard to tell from this what you're trying to do. Andrew. From dennis at dbyrne.net Mon Nov 9 15:38:55 2009 From: dennis at dbyrne.net (Dennis Byrne) Date: Mon, 9 Nov 2009 17:38:55 -0600 Subject: Getting PrintAssembly to work ... Message-ID: <446564320911091538s535d01d0k89e29db209b4b0b6@mail.gmail.com> http://wikis.sun.com/display/HotSpotInternals/PrintAssembly reads "The following HotSpot options ... require OpenJDK 7". If I cannot use OpenJDK 6, what are my options for obtaining 7? The install instructions all appear to be for version 6 http://openjdk.java.net/install/ . Thanks in advance, -- Dennis Byrne From volker.simonis at gmail.com Tue Nov 10 01:09:14 2009 From: volker.simonis at gmail.com (Volker Simonis) Date: Tue, 10 Nov 2009 10:09:14 +0100 Subject: Getting PrintAssembly to work ... In-Reply-To: <446564320911091538s535d01d0k89e29db209b4b0b6@mail.gmail.com> References: <446564320911091538s535d01d0k89e29db209b4b0b6@mail.gmail.com> Message-ID: The documentation is somewhat outdated. It should read "..require at least HotSpot 14". So JDK 6u14 and higher or the latest OpenJDK6 release should be ok. Regards, Volker On 11/10/09, Dennis Byrne wrote: > http://wikis.sun.com/display/HotSpotInternals/PrintAssembly reads "The > following HotSpot options ... require OpenJDK 7". If I cannot use > OpenJDK 6, what are my options for obtaining 7? The install > instructions all appear to be for version 6 > http://openjdk.java.net/install/ . Thanks in advance, > > -- > > Dennis Byrne > From dennis at dbyrne.net Wed Nov 11 09:33:31 2009 From: dennis at dbyrne.net (Dennis Byrne) Date: Wed, 11 Nov 2009 11:33:31 -0600 Subject: Getting PrintAssembly to work ... In-Reply-To: References: <446564320911091538s535d01d0k89e29db209b4b0b6@mail.gmail.com> Message-ID: <446564320911110933n7535a789jba7fc40f43f2d1b4@mail.gmail.com> Thanks for your reply Volker. Got it. byrne at wud-nbyrne01:~$ java -version java version "1.6.0_0" OpenJDK Runtime Environment (IcedTea6 1.6.1) (6b16-1.6.1-1ubuntu3) OpenJDK Client VM (build 14.0-b16, mixed mode, sharing) I am now trying to build the plugin with the following error. Two questions, the README reads "BINTUILS" rather than "BINUTILS". I get the following error regardless of which flag I use. Also, what should I be telling make in order to keep it from looking for /java/re/j2se/1.6.0/latest/binaries/linux-i586/bin/java (which does not exist) ? dbyrne at wud-nbyrne01:~/print_assembly/hotspot-2f1ec89b9995/make$ make BINTUILS=/home/dbyrne/print_assembly/binutils-2.19.1 cd: 1: can't cd to /java/re/j2se/1.6.0/latest/binaries/linux-i586 cd /home/dbyrne/print_assembly/hotspot-2f1ec89b9995/make; \ make VM_TARGET=product generic_build2 cd: 1: can't cd to /java/re/j2se/1.6.0/latest/binaries/linux-i586 make[1]: Entering directory `/home/dbyrne/print_assembly/hotspot-2f1ec89b9995/make' mkdir -p /home/dbyrne/print_assembly/hotspot-2f1ec89b9995/build/linux cd /home/dbyrne/print_assembly/hotspot-2f1ec89b9995/build/linux; \ make -f /home/dbyrne/print_assembly/hotspot-2f1ec89b9995/make/linux/Makefile \ JAVA_HOME=/home/dbyrne/print_assembly/hotspot-2f1ec89b9995/make OUTPUTDIR=/home/dbyrne/print_assembly/hotspot-2f1ec89b9995/build/linux GAMMADIR=/home/dbyrne/print_assembly/hotspot-2f1ec89b9995 MAKE_VERBOSE=y HOTSPOT_RELEASE_VERSION=17.0-b05 JRE_RELEASE_VERSION="1.7.0" HOTSPOT_BUILD_VERSION=internal product cd: 1: can't cd to /java/re/j2se/1.6.0/latest/binaries/linux-i586 make[2]: Entering directory `/home/dbyrne/print_assembly/hotspot-2f1ec89b9995/build/linux' make -f /home/dbyrne/print_assembly/hotspot-2f1ec89b9995/make/linux/Makefile checks cd: 1: can't cd to /java/re/j2se/1.6.0/latest/binaries/linux-i586 make[3]: Entering directory `/home/dbyrne/print_assembly/hotspot-2f1ec89b9995/build/linux' /java/re/j2se/1.6.0/latest/binaries/linux-i586/bin/javap javax.xml.transform.TransformerFactory > /dev/null 2>&1; \ if [ $? -ne 0 ]; then \ /java/re/j2se/1.6.0/latest/binaries/linux-i586/bin/java -version; \ echo "*** An XSLT processor (J2SE 1.4.x or newer) is required" \ "to bootstrap this build" 1>&2; \ exit 1; \ fi /bin/sh: /java/re/j2se/1.6.0/latest/binaries/linux-i586/bin/java: not found *** An XSLT processor (J2SE 1.4.x or newer) is required to bootstrap this build make[3]: *** [check_j2se_version] Error 1 make[3]: Leaving directory `/home/dbyrne/print_assembly/hotspot-2f1ec89b9995/build/linux' make[2]: *** [linux_i486_compiler2/debug] Error 2 make[2]: Leaving directory `/home/dbyrne/print_assembly/hotspot-2f1ec89b9995/build/linux' make[1]: *** [generic_build2] Error 2 make[1]: Leaving directory `/home/dbyrne/print_assembly/hotspot-2f1ec89b9995/make' make: *** [product] Error 2 Dennis On Tue, Nov 10, 2009 at 3:09 AM, Volker Simonis wrote: > The documentation is somewhat outdated. It should read "..require at > least HotSpot 14". So JDK 6u14 and higher or the latest OpenJDK6 > release should be ok. > > Regards, > Volker > > On 11/10/09, Dennis Byrne wrote: >> http://wikis.sun.com/display/HotSpotInternals/PrintAssembly reads "The >> ?following HotSpot options ... require OpenJDK 7". ?If I cannot use >> ?OpenJDK 6, what are my options for obtaining 7? ?The install >> ?instructions all appear to be for version 6 >> ?http://openjdk.java.net/install/ . ?Thanks in advance, >> >> ?-- >> >> Dennis Byrne >> > -- Dennis Byrne From David.Katleman at Sun.COM Thu Nov 12 21:35:05 2009 From: David.Katleman at Sun.COM (David Katleman) Date: Thu, 12 Nov 2009 21:35:05 -0800 Subject: JDK 7 build 76 is available at the openjdk.java.net website Message-ID: <4AFCF009.5060403@sun.com> The OpenJDK source is available at: http://hg.openjdk.java.net/jdk7/jdk7 http://hg.openjdk.java.net/jdk7/jdk7/rev/1f17ca8353ba The OpenJDK source binary plugs for the promoted JDK 7 build YY are available under the openjdk http://openjdk.java.net website under Source Code (direct link to bundles: http://download.java.net/openjdk/jdk7) Summary of changes: http://download.java.net/jdk7/changes/jdk7-b76.html - Dave From David.Katleman at Sun.COM Thu Nov 12 21:33:13 2009 From: David.Katleman at Sun.COM (David Katleman) Date: Thu, 12 Nov 2009 21:33:13 -0800 Subject: JDK 7 build 76 is available at the openjdk.java.net website Message-ID: <4AFCEF99.2090205@sun.com> The OpenJDK source is available at: http://hg.openjdk.java.net/jdk7/jdk7 http://hg.openjdk.java.net/jdk7/jdk7/rev/1f17ca8353ba The OpenJDK source binary plugs for the promoted JDK 7 build YY are available under the openjdk http://openjdk.java.net website under Source Code (direct link to bundles: http://download.java.net/openjdk/jdk7) Summary of changes: http://download.java.net/jdk7/changes/jdk7-b76.html - Dave From gnu_andrew at member.fsf.org Fri Nov 13 08:43:02 2009 From: gnu_andrew at member.fsf.org (Andrew John Hughes) Date: Fri, 13 Nov 2009 16:43:02 +0000 Subject: JDK 7 build 76 is available at the openjdk.java.net website In-Reply-To: <4AFCF009.5060403@sun.com> References: <4AFCF009.5060403@sun.com> Message-ID: <17c6771e0911130843w51576631n79e9e1fe78e1d23f@mail.gmail.com> 2009/11/13 David Katleman : > The OpenJDK source is available at: > http://hg.openjdk.java.net/jdk7/jdk7 > http://hg.openjdk.java.net/jdk7/jdk7/rev/1f17ca8353ba > > The OpenJDK source binary plugs for the promoted JDK 7 build YY are > available under the openjdk http://openjdk.java.net website under Source > Code (direct link to bundles: http://download.java.net/openjdk/jdk7) > > Summary of changes: > http://download.java.net/jdk7/changes/jdk7-b76.html > > > - Dave > Anyone know if this is to be milestone 5 yet? -- Andrew :-) Free Java Software Engineer Red Hat, Inc. (http://www.redhat.com) Support Free Java! Contribute to GNU Classpath and the OpenJDK http://www.gnu.org/software/classpath http://openjdk.java.net PGP Key: 94EFD9D8 (http://subkeys.pgp.net) Fingerprint: F8EF F1EA 401E 2E60 15FA 7927 142C 2591 94EF D9D8 From David.Katleman at Sun.COM Fri Nov 13 08:50:19 2009 From: David.Katleman at Sun.COM (david katleman) Date: Fri, 13 Nov 2009 08:50:19 -0800 Subject: b76 is milestone 5. Re: JDK 7 build 76 is available at the openjdk.java.net website In-Reply-To: <17c6771e0911130843w51576631n79e9e1fe78e1d23f@mail.gmail.com> References: <4AFCF009.5060403@sun.com> <17c6771e0911130843w51576631n79e9e1fe78e1d23f@mail.gmail.com> Message-ID: <4AFD8E4B.4040801@sun.com> Hi Andrew! > Anyone know if this is to be milestone 5 yet? Yes, b76 is milestone 5. Thanks Dave Andrew John Hughes wrote: > 2009/11/13 David Katleman : > >> The OpenJDK source is available at: >> http://hg.openjdk.java.net/jdk7/jdk7 >> http://hg.openjdk.java.net/jdk7/jdk7/rev/1f17ca8353ba >> >> The OpenJDK source binary plugs for the promoted JDK 7 build 76 are >> available under the openjdk http://openjdk.java.net website under Source >> Code (direct link to bundles: http://download.java.net/openjdk/jdk7) >> >> Summary of changes: >> http://download.java.net/jdk7/changes/jdk7-b76.html >> >> >> - Dave >> >> > > Anyone know if this is to be milestone 5 yet? > From neal at gafter.com Fri Nov 13 11:12:51 2009 From: neal at gafter.com (Neal Gafter) Date: Fri, 13 Nov 2009 11:12:51 -0800 Subject: Congrats on openjdk7 feature complete? Message-ID: <15e8b9d20911131112t34569965r79bb2602664156c1@mail.gmail.com> Mark- I think congratulations are in order for reaching the Feature Complete milestone M5 of openjdk7 (delayed, as you previously announced, to the now complete build 76). This leaves me wondering about the state of features previously planned for JDK7, but not now included. It's been nearly three years since the release of SE 6. Will JDK7 slip to await specificaion, implementation, and integrations of further features? Or will yet-incomplete features have to wait for a later release? Cheers, Neal From mthornton at optrak.co.uk Fri Nov 13 11:21:10 2009 From: mthornton at optrak.co.uk (Mark Thornton) Date: Fri, 13 Nov 2009 19:21:10 +0000 Subject: Congrats on openjdk7 feature complete? In-Reply-To: <15e8b9d20911131112t34569965r79bb2602664156c1@mail.gmail.com> References: <15e8b9d20911131112t34569965r79bb2602664156c1@mail.gmail.com> Message-ID: <4AFDB1A6.6040708@optrak.co.uk> Neal Gafter wrote: > Mark- > > I think congratulations are in order for reaching the Feature Complete > milestone M5 of openjdk7 (delayed, as you previously announced, to the now > complete build 76). > Indeed, have a beer. > This leaves me wondering about the state of features previously planned for > JDK7, but not now included. Sadly some of them appear to be in hibernation if not actually dead. Mark From Jonathan.Gibbons at Sun.COM Fri Nov 13 11:29:28 2009 From: Jonathan.Gibbons at Sun.COM (Jonathan Gibbons) Date: Fri, 13 Nov 2009 11:29:28 -0800 Subject: Congrats on openjdk7 feature complete? In-Reply-To: <4AFDB1A6.6040708@optrak.co.uk> References: <15e8b9d20911131112t34569965r79bb2602664156c1@mail.gmail.com> <4AFDB1A6.6040708@optrak.co.uk> Message-ID: <4AFDB398.5050603@sun.com> Mark Thornton wrote: > Neal Gafter wrote: >> Mark- >> >> I think congratulations are in order for reaching the Feature Complete >> milestone M5 of openjdk7 (delayed, as you previously announced, to >> the now >> complete build 76). >> > Indeed, have a beer. >> This leaves me wondering about the state of features previously >> planned for >> JDK7, but not now included. > Sadly some of them appear to be in hibernation if not actually dead. > > Mark Nah, they're pining -- they're just pining for the lost fjords. -- Jon From mthornton at optrak.co.uk Fri Nov 13 11:47:07 2009 From: mthornton at optrak.co.uk (Mark Thornton) Date: Fri, 13 Nov 2009 19:47:07 +0000 Subject: Congrats on openjdk7 feature complete? In-Reply-To: <4AFDB398.5050603@sun.com> References: <15e8b9d20911131112t34569965r79bb2602664156c1@mail.gmail.com> <4AFDB1A6.6040708@optrak.co.uk> <4AFDB398.5050603@sun.com> Message-ID: <4AFDB7BB.1010902@optrak.co.uk> Jonathan Gibbons wrote: > Mark Thornton wrote: >> Neal Gafter wrote: >>> This leaves me wondering about the state of features previously >>> planned for >>> JDK7, but not now included. >> Sadly some of them appear to be in hibernation if not actually dead. >> >> Mark > Nah, they're pining -- they're just pining for the lost fjords. > > -- Jon http://en.wikipedia.org/wiki/Dead_Parrot ;-) Mark From dennisbyrne at apache.org Tue Nov 17 15:28:59 2009 From: dennisbyrne at apache.org (Dennis Byrne) Date: Tue, 17 Nov 2009 17:28:59 -0600 Subject: mfence on i686 with volatile? Message-ID: <446564320911171528y3e27efd7v71b4e36bd394f69f@mail.gmail.com> I am not observing any fences in the output from PrintAssembly. The following java produces the following assembly, regardless of whether or not I make v and v2 volatile. class HelloWorld extends Thread{ public static int v = 0; public static int v2 = 1; public static void main(String[] args){ new HelloWorld().start(); new HelloWorld().start(); } public void run() { for(int i = 0; i < 1000000; i++){ v += 333; v2 += v; } System.out.println(v); System.out.println(v2); } } 0x02e33d30: mov %eax,-0x3000(%esp) ; 0x02e33d37: push %ebp ; 0x02e33d38: mov %esp,%ebp ; 0x02e33d3a: sub $0x28,%esp ; 0x02e33d3d: mov $0x0,%esi ; 0x02e33d42: jmp 0x02e33d7a ; 0x02e33d47: nop ; 0x02e33d48: mov $0x95ba5348,%edx ; 0x02e33d4d: mov 0x1b8(%edx),%ecx ; 0x02e33d53: add $0x14d,%ecx ; v += 333 0x02e33d59: mov %ecx,0x1b8(%edx) ; 0x02e33d5f: mov 0x1bc(%edx),%ecx ; 0x02e33d65: mov 0x1b8(%edx),%edi ; 0x02e33d6b: add %edi,%ecx ; v2 += v 0x02e33d6d: mov %ecx,0x1bc(%edx) ; 0x02e33d73: inc %esi ; i++ ; ; ; - HelloWorld::run at 31 (line 12) -- Dennis Byrne From David.Holmes at Sun.COM Tue Nov 17 17:42:49 2009 From: David.Holmes at Sun.COM (David Holmes - Sun Microsystems) Date: Wed, 18 Nov 2009 11:42:49 +1000 Subject: mfence on i686 with volatile? In-Reply-To: <446564320911171528y3e27efd7v71b4e36bd394f69f@mail.gmail.com> References: <446564320911171528y3e27efd7v71b4e36bd394f69f@mail.gmail.com> Message-ID: <4B035119.6010608@sun.com> Denis, This is OT for the discuss mailing list so I've moved it to hotspot-dev. (discuss-list was bcc'ed). Regards, David Holmes Dennis Byrne said the following on 11/18/09 09:28: > I am not observing any fences in the output from PrintAssembly. The > following java produces the following assembly, regardless of whether > or not I make v and v2 volatile. > > class HelloWorld extends Thread{ > public static int v = 0; > public static int v2 = 1; > public static void main(String[] args){ > new HelloWorld().start(); > new HelloWorld().start(); > } > public void run() { > for(int i = 0; i < 1000000; i++){ > v += 333; > v2 += v; > } > System.out.println(v); > System.out.println(v2); > } > } > > > 0x02e33d30: mov %eax,-0x3000(%esp) ; > 0x02e33d37: push %ebp ; > 0x02e33d38: mov %esp,%ebp ; > 0x02e33d3a: sub $0x28,%esp ; > 0x02e33d3d: mov $0x0,%esi ; > 0x02e33d42: jmp 0x02e33d7a ; > 0x02e33d47: nop ; > 0x02e33d48: mov $0x95ba5348,%edx ; > > 0x02e33d4d: mov 0x1b8(%edx),%ecx ; > 0x02e33d53: add $0x14d,%ecx ; v += 333 > 0x02e33d59: mov %ecx,0x1b8(%edx) ; > 0x02e33d5f: mov 0x1bc(%edx),%ecx ; > 0x02e33d65: mov 0x1b8(%edx),%edi ; > 0x02e33d6b: add %edi,%ecx ; v2 += v > 0x02e33d6d: mov %ecx,0x1bc(%edx) ; > 0x02e33d73: inc %esi ; i++ > ; > ; > ; - HelloWorld::run at 31 (line 12) > > From jonnyt at abpni.co.uk Sat Nov 21 11:43:28 2009 From: jonnyt at abpni.co.uk (Jonathan Tripathy) Date: Sat, 21 Nov 2009 19:43:28 +0000 Subject: Installing openjdk-jre on leased computers Message-ID: <4B0842E0.6010400@abpni.co.uk> Hi Folks, I intend on leasing out 15 computers to a customer of mine. I wish for this customer to run a Java application which we have developed. Legally speaking, is it ok for me to install the openjdk-jre package on these computers to enable this customer to run my Java application? The thing that worries me, is that in the "OpenJDK Binary License", the following line is in it: "You may not rent, lease, lend or encumber Software". Does this prevent me doing what I want to do? I will be taking money for the lease of these computers, and also for my java software. Could I get around the above term by compiling the openjdk-jre myself? Thanks