# HG changeset patch # User Doug Simon # Date 1396902063 -7200 # Node ID 05e5ab3d4d0f60c423650c606ba26f31d1ed9980 # Parent a588d99d4be1bdb23f5e8efc70081841dbeab6b6 if GRAAL_VERSION is undefined, graal.version system property is set to "unknown" diff -r a588d99d4be1 -r 05e5ab3d4d0f src/share/vm/runtime/arguments.cpp --- 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.