Fwd: [verona.stage] RFR 8139986: Store debug level in java.vm.debug and conditionally print in "java -version"

Alejandro E Murillo alejandro.murillo at oracle.com
Tue Nov 3 19:39:01 UTC 2015


There are building changes in this RFR and I meant to include this alias
but didn't.  So here you go

Thanks
Alejandro

-------- Forwarded Message --------
Subject: 	[verona.stage] RFR 8139986: Store debug level in java.vm.debug 
and conditionally print in "java -version"
Date: 	Tue, 03 Nov 2015 10:45:31 -0700
From: 	Alejandro E Murillo <alejandro.murillo at oracle.com>
Organization: 	Oracle Corporation
To: 	hotspot-dev <hotspot-dev at openjdk.java.net>, core-libs-dev Libs 
<core-libs-dev at openjdk.java.net>
CC: 	verona-dev at openjdk.java.net



Please review these changes:

bug: https://bugs.openjdk.java.net/browse/JDK-8139986
Webrev: http://cr.openjdk.java.net/~amurillo/9/8139986/

Background:
These changes introduce a new system property named "jdk.debug" intended to
identify the type of the build. The build system has already been
modified (see [1])
to provide the build type through the "--with-debug-level" configure option,
and  to remove that info from the (new) version string and
consequently from the "java.version" and "java.vm.version" system
properties.

Here, the configure debug level is used to initialize the value of the
"jdk.debug" system
property. There are also changes to adapt any code that relied on the
value of those version
properties to determine the  build type. They were changed to use this
new property.

The Launcher output was also modified to look as follows:

jdk.debug = (“*foo*” != “release”)
             $java -version
             java version "9-ea"
             Java(TM) SE Runtime Environment (*foo *build 9-ea+88)
            Java HotSpot(TM) 64-Bit Server VM (*foo *build 9-ea+88,
mixed mode)

jdk.debug = “release”: (no change)

$java -version
java version "9-ea"
Java(TM) SE Runtime Environment (build 9-ea+88)
Java HotSpot(TM) 64-Bit Server VM (build 9-ea+88, mixed mode)


All this will be described and updated in the JEP-223 doc [2] shortly.

[1] https://bugs.openjdk.java.net/browse/JDK-8139951
[2] http://openjdk.java.net/jeps/223

Thanks

-- 
Alejandro






More information about the build-dev mailing list