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




 495      if (should_report_bug(_id)) {  // already printed the message.
 496        // error message
 497        if (_detail_msg) {
 498          st->print_cr("#  %s: %s", _message ? _message : "Error", _detail_msg);
 499        } else if (_message) {
 500          st->print_cr("#  Error: %s", _message);
 501        }
 502     }
 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);




 495      if (should_report_bug(_id)) {  // already printed the message.
 496        // error message
 497        if (_detail_msg) {
 498          st->print_cr("#  %s: %s", _message ? _message : "Error", _detail_msg);
 499        } else if (_message) {
 500          st->print_cr("#  Error: %s", _message);
 501        }
 502     }
 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 #if INCLUDE_JVMCI
 516      st->print_cr("# Java VM: %s (%s, %s%s%s%s%s, %s, %s)",
 517 #else
 518      st->print_cr("# Java VM: %s (%s, %s%s%s, %s, %s)",
 519 #endif
 520                    Abstract_VM_Version::vm_name(),
 521                    Abstract_VM_Version::vm_release(),
 522                    Abstract_VM_Version::vm_info_string(),
 523                    TieredCompilation ? ", tiered" : "",
 524 #if INCLUDE_JVMCI
 525                    EnableJVMCI ? ", jvmci" : "",
 526                    UseJVMCICompiler ? ", jvmci compiler" : "",
 527 #endif
 528                    UseCompressedOops ? ", compressed oops" : "",
 529                    gc_mode(),
 530                    Abstract_VM_Version::vm_platform_string()
 531                  );
 532 
 533   STEP(100, "(printing problematic frame)")
 534 
 535      // Print current frame if we have a context (i.e. it's a crash)
 536      if (_context) {
 537        st->print_cr("# Problematic frame:");
 538        st->print("# ");
 539        frame fr = os::fetch_frame_from_context(_context);


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