Skip to content

Commit 69e4e33

Browse files
author
Doug Simon
committed
8283056: show abstract machine code in hs-err for all VM crashes
Reviewed-by: thartmann, dholmes
1 parent bad658e commit 69e4e33

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/hotspot/share/utilities/vmError.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ void VMError::report(outputStream* st, bool _verbose) {
910910

911911
STEP("printing code blobs if possible")
912912

913-
if (_verbose && _context) {
913+
if (_verbose) {
914914
const int printed_capacity = max_error_log_print_code;
915915
address printed[printed_capacity];
916916
printed[0] = nullptr;
@@ -929,7 +929,8 @@ void VMError::report(outputStream* st, bool _verbose) {
929929
printed_len++;
930930
}
931931
} else {
932-
frame fr = os::fetch_frame_from_context(_context);
932+
frame fr = _context ? os::fetch_frame_from_context(_context)
933+
: os::current_frame();
933934
while (printed_len < limit && fr.pc() != nullptr) {
934935
if (print_code(st, _thread, fr.pc(), fr.pc() == _pc, printed, printed_capacity)) {
935936
printed_len++;

0 commit comments

Comments
 (0)