changeset 15015:05e5ab3d4d0f

if GRAAL_VERSION is undefined, graal.version system property is set to "unknown"
author Doug Simon <doug.simon@oracle.com>
date Mon, 07 Apr 2014 22:21:03 +0200
parents a588d99d4be1
children ff5660822992
files src/share/vm/runtime/arguments.cpp
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/runtime/arguments.cpp	Mon Apr 07 22:20:23 2014 +0200
+++ b/src/share/vm/runtime/arguments.cpp	Mon Apr 07 22:21:03 2014 +0200
@@ -182,7 +182,11 @@
   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
+#ifdef GRAAL_VERSION
   PropertyList_add(&_system_properties, new SystemProperty("graal.version", GRAAL_VERSION,  true));
+#else
+  PropertyList_add(&_system_properties, new SystemProperty("graal.version", "unknown",  true));
+#endif
 #endif
 
   // following are JVMTI agent writeable properties.