comparison 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
comparison
equal deleted inserted replaced
15014:a588d99d4be1 15015:05e5ab3d4d0f
180 "Java Virtual Machine Specification", false)); 180 "Java Virtual Machine Specification", false));
181 PropertyList_add(&_system_properties, new SystemProperty("java.vm.version", VM_Version::vm_release(), false)); 181 PropertyList_add(&_system_properties, new SystemProperty("java.vm.version", VM_Version::vm_release(), false));
182 PropertyList_add(&_system_properties, new SystemProperty("java.vm.name", VM_Version::vm_name(), false)); 182 PropertyList_add(&_system_properties, new SystemProperty("java.vm.name", VM_Version::vm_name(), false));
183 PropertyList_add(&_system_properties, new SystemProperty("java.vm.info", VM_Version::vm_info_string(), true)); 183 PropertyList_add(&_system_properties, new SystemProperty("java.vm.info", VM_Version::vm_info_string(), true));
184 #ifdef GRAAL 184 #ifdef GRAAL
185 #ifdef GRAAL_VERSION
185 PropertyList_add(&_system_properties, new SystemProperty("graal.version", GRAAL_VERSION, true)); 186 PropertyList_add(&_system_properties, new SystemProperty("graal.version", GRAAL_VERSION, true));
187 #else
188 PropertyList_add(&_system_properties, new SystemProperty("graal.version", "unknown", true));
189 #endif
186 #endif 190 #endif
187 191
188 // following are JVMTI agent writeable properties. 192 // following are JVMTI agent writeable properties.
189 // Properties values are set to NULL and they are 193 // Properties values are set to NULL and they are
190 // os specific they are initialized in os::init_system_properties_values(). 194 // os specific they are initialized in os::init_system_properties_values().