Thank you very much David and Erik for clarifying these issues for me. Looks like we all believe it doing it right, doing it once. I am impressed. Good job
Medi On 12/04/2014 04:41 PM, David Holmes wrote: Just to further clarify things, the hotspot version is set in the build files: jdk8/hotspot/make/hotspot_version HS_MAJOR_VER=25 HS_MINOR_VER=0 HS_BUILD_NUMBER=70 so that is why you see it in your local build. The JDK version string, as Erik says, takes on values based on configure arguments (if passed) else defaults (that can include timestamps). The official Oracle JDK builds use a specific format for the JDK version string. Also if you look in hotspot/.hgtags you will see the last two lines: 9f9179e8f0cfe74c08f3716cf3c38e21e1de4c4a hs25-b70 0c94c41dcd70e9a9b4d96e31275afd5a73daa72d jdk8-b132 confirming that JDK8-b132 corresponds to hotspot hs25-b70. David On 4/12/2014 6:50 PM, Erik Joelsson wrote: On 2014-12-03 21:54, Medi Montaseri wrote: Thanks David and Erik, A bit more confused...I don't know what hotspot is. Hotspot is the jvm, basically libjvm.so (and a few of the support libs) and has historically been treated as a separate project from the rest of the jdk. Because of that it has its own version string. When you run java -version in jdk8, you see three lines. The last one that says "VM" belongs to Hotspot. It ignores the input from configure. I am aware of configure --with-build-number and --with-milestone and indeed use them....and that is why I get bin/java -version openjdk version "1.8.0-20141202" // note how this version is stamped with a date OpenJDK Runtime Environment (build 1.8.0-20141202-HDS-174701) // note how this portion is also decorated with date, label and more numbers OpenJDK 64-Bit Server VM (build 25.0-b70, mixed mode) ^^^^ /// what is this b70 The b70 makes me think that I am not working with the tip Look at that line with "VM" and "b70" and compare it to the same line from jdk8 GA. They are the exact same. Let me ask the question another way... If I pull the latest and "hg tags" says b132 as in unix> cd srcDir/jdk ; hg tags | head -2 tip 9107:687fd7c7986d jdk8-b132 9106:43cb25339b55 Can I then be sure that I am indeed working with the tip...? AFAIK yes. David...you see how yours is showing the b132 java version "1.8.0" Java(TM) SE Runtime Environment (build 1.8.0-b132) // look there is the b132 thing -b132 Java HotSpot(TM) Server VM (build 25.0-b70, mixed mode) Yes, this shows b132, in the line that is only defined by configure arguments, and that you are setting to something else. /Erik Again, I need to make sure I have the latest and be able to query some binary (java or javac) to show that it is the latest. Thanks Medi ________________________________________ From: Erik Joelsson [erik.joels...@oracle.com<mailto:erik.joels...@oracle.com>] Sent: Wednesday, December 03, 2014 12:33 AM To: David Holmes; Medi Montaseri; build-dev@openjdk.java.net<mailto:build-dev@openjdk.java.net> Subject: Re: Confirming JDK 8 GA version The source/makefiles are not aware of the build number. It's assigned from an external source at the time of building a promoted build. If you want your version number to better match 8 GA, you will have to play around with the configure arguments --with-build-number and possibly --with-milestone. Also, as David pointed out, in JDK 8, hotspot has it's own numbering. /Erik On 2014-12-03 06:13, David Holmes wrote: On 3/12/2014 12:25 PM, Medi Montaseri wrote: Hi, Just wanted to confirm some issues: I am interested in building the latest (tip) of jdk8 GA release. 1- jdk8 GA is different from jdk8u (u is for updates), I should get the src from http://hg.openjdk.java.net/jdk8/jdk8 2- The latest tagged version of the src is "jdk8-b132 9106:43cb25339b55" 3- I confirm that I have the latest src (for GA) by running "hg tags" like unix> cd srcDir/jdk ; hg tags | head -2 tip 9107:687fd7c7986d jdk8-b132 9106:43cb25339b55 I go ahead and build everything and then run "java -version" and I see openjdk version "1.8.0-20141202" OpenJDK Runtime Environment (build 1.8.0-20141202-HDS-174701) OpenJDK 64-Bit Server VM (build 25.0-b70, mixed mode) Q- Why am I seeing "build 25.0-b70" ? Does this "b70" has anything to do with above "jdk8-b132" ? That is the hotspot version number and build number as used in the GA build of JDK 8. It is correct. java version "1.8.0" Java(TM) SE Runtime Environment (build 1.8.0-b132) Java HotSpot(TM) Server VM (build 25.0-b70, mixed mode) David ----- Thanks Medi