Setting/overriding HOTSPOT_VERSION_STRING
Doug Simon
doug.simon at oracle.com
Tue Jul 5 10:21:29 UTC 2016
Hi,
I’m trying to customize the value set during the JDK 9 build for the java.vm.version system property. As far as I can see, it comes from HOTSPOT_VERSION_STRING.
vm_version.cpp:
#define VM_RELEASE HOTSPOT_VERSION_STRING
const char* Abstract_VM_Version::vm_release() {
return VM_RELEASE;
}
arguments.cpp:
PropertyList_add(&_system_properties, new SystemProperty("java.vm.version", VM_Version::vm_release(), false));
Do you know how I can set/override the value of HOTSPOT_VERSION_STRING passed to the HotSpot build? I tried setting it as an environment variable but it didn’t work:
dsimon at kurz ~/hs-comp> touch hotspot/src/share/vm/runtime/vm_version.cpp; env HOTSPOT_VERSION_STRING=XXXXXXXXXXXXX make CONF=release
Building configuration 'macosx-x86_64-normal-server-release' (matching CONF=release)
Building target 'default (exploded-image)' in configuration 'macosx-x86_64-normal-server-release'
Building JVM variant 'server' with features 'all-gcs cds closed-src commercial-features compiler1 compiler2 dtrace fprof jni-check jvmci jvmti management nmt services trace vm-structs'
Updating libjvm.dylib due to 1 file(s)
Finished building target 'default (exploded-image)' in configuration 'macosx-x86_64-normal-server-release'
dsimon at kurz ~/hs-comp> build/macosx-x86_64-normal-server-release/jdk/bin/java -version
java version "9-internal"
Java(TM) SE Runtime Environment (build 9-internal+0-2016-06-29-123036.dsimon.hs-comp)
Java HotSpot(TM) 64-Bit Server VM (build 9-internal+0-2016-06-29-123036.dsimon.hs-comp, mixed mode)
-Doug
More information about the build-infra-dev
mailing list