Setting/overriding HOTSPOT_VERSION_STRING
Doug Simon
doug.simon at oracle.com
Tue Jul 5 12:27:04 UTC 2016
Thanks for the suggestion. However, it doesn’t seem work either:
dsimon at kurz ~/hs-comp> touch hotspot/src/share/vm/runtime/vm_version.cpp; make CONF=release HOTSPOT_VERSION_STRING=xxxxxxxx
Note: Command line contains non-control variables:
* HOTSPOT_VERSION_STRING=xxxxxxxx
Make sure it is not mistyped, and that you intend to override this variable.
'make help' will list known control variables.
-Doug
> On 05 Jul 2016, at 14:18, David Holmes <david.holmes at oracle.com> wrote:
>
> Hi Doug,
>
> Try setting it as a make variable rather than an environment variable.
>
> david
>
> On 5/07/2016 8:21 PM, Doug Simon wrote:
>> 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