diff src/share/vm/runtime/arguments.cpp @ 15000:cc844a4512f1

added graal.version system property that is (only) defined by Graal enabled VMs
author Doug Simon <doug.simon@oracle.com>
date Mon, 07 Apr 2014 16:24:49 +0200
parents 4ca6dc0799b6
children 289a017dd9e2
line wrap: on
line diff
--- a/src/share/vm/runtime/arguments.cpp	Mon Apr 07 11:46:20 2014 +0200
+++ b/src/share/vm/runtime/arguments.cpp	Mon Apr 07 16:24:49 2014 +0200
@@ -182,6 +182,9 @@
   PropertyList_add(&_system_properties, new SystemProperty("java.vm.version", VM_Version::vm_release(),  false));
   PropertyList_add(&_system_properties, new SystemProperty("java.vm.name", VM_Version::vm_name(),  false));
   PropertyList_add(&_system_properties, new SystemProperty("java.vm.info", VM_Version::vm_info_string(),  true));
+#ifdef GRAAL
+  PropertyList_add(&_system_properties, new SystemProperty("graal.version", GRAAL_VERSION,  true));
+#endif
 
   // following are JVMTI agent writeable properties.
   // Properties values are set to NULL and they are