src/share/vm/utilities/vmError.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File 8139380 Sdiff src/share/vm/utilities

src/share/vm/utilities/vmError.cpp

Print this page
rev 9077 : 8139380: VMError::report_and_die() does not produce replay file
Summary: Change VMError::report() to use a correct format string in both JVMCI-enabled builds and builds without JVMCI.
Reviewed-by: roland, kvn


 503 
 504   STEP(90, "(printing Java version string)")
 505 
 506      // VM version
 507      st->print_cr("#");
 508      JDK_Version::current().to_string(buf, sizeof(buf));
 509      const char* runtime_name = JDK_Version::runtime_name() != NULL ?
 510                                   JDK_Version::runtime_name() : "";
 511      const char* runtime_version = JDK_Version::runtime_version() != NULL ?
 512                                   JDK_Version::runtime_version() : "";
 513      st->print_cr("# JRE version: %s (%s) (build %s)", runtime_name, buf, runtime_version);
 514      // This is the long version with some default settings added
 515      st->print_cr("# Java VM: %s (%s, %s%s%s%s%s, %s, %s)",
 516                    Abstract_VM_Version::vm_name(),
 517                    Abstract_VM_Version::vm_release(),
 518                    Abstract_VM_Version::vm_info_string(),
 519                    TieredCompilation ? ", tiered" : "",
 520 #if INCLUDE_JVMCI
 521                    EnableJVMCI ? ", jvmci" : "",
 522                    UseJVMCICompiler ? ", jvmci compiler" : "",


 523 #endif
 524                    UseCompressedOops ? ", compressed oops" : "",
 525                    gc_mode(),
 526                    Abstract_VM_Version::vm_platform_string()
 527                  );
 528 
 529   STEP(100, "(printing problematic frame)")
 530 
 531      // Print current frame if we have a context (i.e. it's a crash)
 532      if (_context) {
 533        st->print_cr("# Problematic frame:");
 534        st->print("# ");
 535        frame fr = os::fetch_frame_from_context(_context);
 536        fr.print_on_error(st, buf, sizeof(buf));
 537        st->cr();
 538        st->print_cr("#");
 539      }
 540 
 541   STEP(110, "(printing core file information)")
 542     st->print("# ");




 503 
 504   STEP(90, "(printing Java version string)")
 505 
 506      // VM version
 507      st->print_cr("#");
 508      JDK_Version::current().to_string(buf, sizeof(buf));
 509      const char* runtime_name = JDK_Version::runtime_name() != NULL ?
 510                                   JDK_Version::runtime_name() : "";
 511      const char* runtime_version = JDK_Version::runtime_version() != NULL ?
 512                                   JDK_Version::runtime_version() : "";
 513      st->print_cr("# JRE version: %s (%s) (build %s)", runtime_name, buf, runtime_version);
 514      // This is the long version with some default settings added
 515      st->print_cr("# Java VM: %s (%s, %s%s%s%s%s, %s, %s)",
 516                    Abstract_VM_Version::vm_name(),
 517                    Abstract_VM_Version::vm_release(),
 518                    Abstract_VM_Version::vm_info_string(),
 519                    TieredCompilation ? ", tiered" : "",
 520 #if INCLUDE_JVMCI
 521                    EnableJVMCI ? ", jvmci" : "",
 522                    UseJVMCICompiler ? ", jvmci compiler" : "",
 523 #else
 524                    "", "",
 525 #endif
 526                    UseCompressedOops ? ", compressed oops" : "",
 527                    gc_mode(),
 528                    Abstract_VM_Version::vm_platform_string()
 529                  );
 530 
 531   STEP(100, "(printing problematic frame)")
 532 
 533      // Print current frame if we have a context (i.e. it's a crash)
 534      if (_context) {
 535        st->print_cr("# Problematic frame:");
 536        st->print("# ");
 537        frame fr = os::fetch_frame_from_context(_context);
 538        fr.print_on_error(st, buf, sizeof(buf));
 539        st->cr();
 540        st->print_cr("#");
 541      }
 542 
 543   STEP(110, "(printing core file information)")
 544     st->print("# ");


src/share/vm/utilities/vmError.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File