src/hotspot/share/utilities/vmError.cpp
changeset 52148 2d9f8845d0ae
parent 52115 9e6158f12068
child 52311 274ba8fbd96d
equal deleted inserted replaced
52147:435467bce14e 52148:2d9f8845d0ae
   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
  1005      }
  1005      }
  1006 
  1006 
  1007   STEP("printing internal vm info")
  1007   STEP("printing internal vm info")
  1008 
  1008 
  1009      if (_verbose) {
  1009      if (_verbose) {
  1010        st->print_cr("vm_info: %s", Abstract_VM_Version::internal_vm_info_string());
  1010        st->print_cr("vm_info: %s", VM_Version::internal_vm_info_string());
  1011        st->cr();
  1011        st->cr();
  1012      }
  1012      }
  1013 
  1013 
  1014   // print a defined marker to show that error handling finished correctly.
  1014   // print a defined marker to show that error handling finished correctly.
  1015   STEP("printing end marker")
  1015   STEP("printing end marker")
  1168   os::print_memory_info(st);
  1168   os::print_memory_info(st);
  1169   st->cr();
  1169   st->cr();
  1170 
  1170 
  1171   // STEP("printing internal vm info")
  1171   // STEP("printing internal vm info")
  1172 
  1172 
  1173   st->print_cr("vm_info: %s", Abstract_VM_Version::internal_vm_info_string());
  1173   st->print_cr("vm_info: %s", VM_Version::internal_vm_info_string());
  1174   st->cr();
  1174   st->cr();
  1175 
  1175 
  1176   // print a defined marker to show that error handling finished correctly.
  1176   // print a defined marker to show that error handling finished correctly.
  1177   // STEP("printing end marker")
  1177   // STEP("printing end marker")
  1178 
  1178