This repository was archived by the owner on Aug 27, 2022. It is now read-only.
File tree 1 file changed +4
-2
lines changed
src/hotspot/share/utilities
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -776,7 +776,8 @@ void VMError::report(outputStream* st, bool _verbose) {
776
776
STEP (" printing register info" )
777
777
778
778
// decode register contents if possible
779
- if (_verbose && _context && Universe::is_fully_initialized ()) {
779
+ if (_verbose && _context && _thread && Universe::is_fully_initialized ()) {
780
+ ResourceMark rm (_thread);
780
781
os::print_register_info (st, _context);
781
782
st->cr ();
782
783
}
@@ -792,7 +793,7 @@ void VMError::report(outputStream* st, bool _verbose) {
792
793
STEP (" inspecting top of stack" )
793
794
794
795
// decode stack contents if possible
795
- if (_verbose && _context && Universe::is_fully_initialized ()) {
796
+ if (_verbose && _context && _thread && Universe::is_fully_initialized ()) {
796
797
frame fr = os::fetch_frame_from_context (_context);
797
798
const int slots = 8 ;
798
799
const intptr_t *start = fr.sp ();
@@ -801,6 +802,7 @@ void VMError::report(outputStream* st, bool _verbose) {
801
802
st->print_cr (" Stack slot to memory mapping:" );
802
803
for (int i = 0 ; i < slots; ++i) {
803
804
st->print (" stack at sp + %d slots: " , i);
805
+ ResourceMark rm (_thread);
804
806
os::print_location (st, *(start + i));
805
807
}
806
808
}
You can’t perform that action at this time.
0 commit comments