Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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