File tree 1 file changed +2
-0
lines changed
src/hotspot/share/utilities
1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -540,6 +540,7 @@ inline void ExceptionMark::check_no_pending_exception() {
540
540
if (_thread->has_pending_exception ()) {
541
541
oop exception = _thread->pending_exception ();
542
542
_thread->clear_pending_exception (); // Needed to avoid infinite recursion
543
+ ResourceMark rm;
543
544
exception ->print ();
544
545
fatal (" ExceptionMark constructor expects no pending exceptions" );
545
546
}
@@ -551,6 +552,7 @@ ExceptionMark::~ExceptionMark() {
551
552
Handle exception (_thread, _thread->pending_exception ());
552
553
_thread->clear_pending_exception (); // Needed to avoid infinite recursion
553
554
if (is_init_completed ()) {
555
+ ResourceMark rm;
554
556
exception ->print ();
555
557
fatal (" ExceptionMark destructor expects no pending exceptions" );
556
558
} else {
You can’t perform that action at this time.
0 commit comments