317 JDK_Version::current().to_string(buf, buflen); |
317 JDK_Version::current().to_string(buf, buflen); |
318 const char* runtime_name = JDK_Version::runtime_name() != NULL ? |
318 const char* runtime_name = JDK_Version::runtime_name() != NULL ? |
319 JDK_Version::runtime_name() : ""; |
319 JDK_Version::runtime_name() : ""; |
320 const char* runtime_version = JDK_Version::runtime_version() != NULL ? |
320 const char* runtime_version = JDK_Version::runtime_version() != NULL ? |
321 JDK_Version::runtime_version() : ""; |
321 JDK_Version::runtime_version() : ""; |
322 const char* jdk_debug_level = Abstract_VM_Version::printable_jdk_debug_level() != NULL ? |
322 const char* jdk_debug_level = VM_Version::printable_jdk_debug_level() != NULL ? |
323 Abstract_VM_Version::printable_jdk_debug_level() : ""; |
323 VM_Version::printable_jdk_debug_level() : ""; |
324 |
324 |
325 st->print_cr("# JRE version: %s (%s) (%sbuild %s)", runtime_name, buf, |
325 st->print_cr("# JRE version: %s (%s) (%sbuild %s)", runtime_name, buf, |
326 jdk_debug_level, runtime_version); |
326 jdk_debug_level, runtime_version); |
327 |
327 |
328 // This is the long version with some default settings added |
328 // This is the long version with some default settings added |
329 st->print_cr("# Java VM: %s (%s%s, %s%s%s%s%s, %s, %s)", |
329 st->print_cr("# Java VM: %s (%s%s, %s%s%s%s%s, %s, %s)", |
330 Abstract_VM_Version::vm_name(), |
330 VM_Version::vm_name(), |
331 jdk_debug_level, |
331 jdk_debug_level, |
332 Abstract_VM_Version::vm_release(), |
332 VM_Version::vm_release(), |
333 Abstract_VM_Version::vm_info_string(), |
333 VM_Version::vm_info_string(), |
334 TieredCompilation ? ", tiered" : "", |
334 TieredCompilation ? ", tiered" : "", |
335 #if INCLUDE_JVMCI |
335 #if INCLUDE_JVMCI |
336 EnableJVMCI ? ", jvmci" : "", |
336 EnableJVMCI ? ", jvmci" : "", |
337 UseJVMCICompiler ? ", jvmci compiler" : "", |
337 UseJVMCICompiler ? ", jvmci compiler" : "", |
338 #else |
338 #else |
339 "", "", |
339 "", "", |
340 #endif |
340 #endif |
341 UseCompressedOops ? ", compressed oops" : "", |
341 UseCompressedOops ? ", compressed oops" : "", |
342 GCConfig::hs_err_name(), |
342 GCConfig::hs_err_name(), |
343 Abstract_VM_Version::vm_platform_string() |
343 VM_Version::vm_platform_string() |
344 ); |
344 ); |
345 } |
345 } |
346 |
346 |
347 // This is the main function to report a fatal error. Only one thread can |
347 // This is the main function to report a fatal error. Only one thread can |
348 // call this function, so we don't need to worry about MT-safety. But it's |
348 // call this function, so we don't need to worry about MT-safety. But it's |