Skip to content

Commit

Permalink
8283056: show abstract machine code in hs-err for all VM crashes
Browse files Browse the repository at this point in the history
Backport-of: 69e4e338b19c0ffd2f0881be1bbb19a5642bc4d4
  • Loading branch information
TheRealMDoerr committed Jun 22, 2023
1 parent 9a49698 commit ab27843
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/hotspot/share/utilities/vmError.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,7 @@ void VMError::report(outputStream* st, bool _verbose) {

STEP("printing code blobs if possible")

if (_verbose && _context) {
if (_verbose) {
const int printed_capacity = max_error_log_print_code;
address printed[printed_capacity];
printed[0] = nullptr;
Expand All @@ -928,7 +928,8 @@ void VMError::report(outputStream* st, bool _verbose) {
printed_len++;
}
} else {
frame fr = os::fetch_frame_from_context(_context);
frame fr = _context ? os::fetch_frame_from_context(_context)
: os::current_frame();
while (printed_len < limit && fr.pc() != nullptr) {
if (print_code(st, _thread, fr.pc(), fr.pc() == _pc, printed, printed_capacity)) {
printed_len++;
Expand Down

1 comment on commit ab27843

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.