Skip to content

Commit

Permalink
Backport 69e4e338b19c0ffd2f0881be1bbb19a5642bc4d4
Browse files Browse the repository at this point in the history
  • Loading branch information
duke committed Jun 21, 2023
1 parent 48d7af6 commit 7760422
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

0 comments on commit 7760422

Please sign in to comment.