Mercurial > hg > truffle
diff src/share/vm/runtime/arguments.cpp @ 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 | 289a017dd9e2 |
children | ad431bf0de07 |
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.