@@ -627,7 +627,7 @@ BytecodeInterpreter::run(interpreterState istate) {
627627 (* BiasedLocking::rebiased_lock_entry_count_addr ())++;
628628 }
629629 } else {
630- CALL_VM ( InterpreterRuntime::monitorenter (THREAD, mon), handle_exception );
630+ InterpreterRuntime::monitorenter (THREAD, mon);
631631 }
632632 success = true ;
633633 } else {
@@ -1822,7 +1822,7 @@ BytecodeInterpreter::run(interpreterState istate) {
18221822 if (call_vm || lockee->cas_set_mark (header, old_header) != old_header) {
18231823 // restore object for the slow case
18241824 most_recent->set_obj (lockee);
1825- CALL_VM ( InterpreterRuntime::monitorexit (THREAD, most_recent), handle_exception );
1825+ InterpreterRuntime::monitorexit (most_recent);
18261826 }
18271827 }
18281828 }
@@ -2959,11 +2959,7 @@ BytecodeInterpreter::run(interpreterState istate) {
29592959 if (lockee->cas_set_mark (header, old_header) != old_header) {
29602960 // restore object for the slow case
29612961 end->set_obj (lockee);
2962- {
2963- // Prevent any HandleMarkCleaner from freeing our live handles
2964- HandleMark __hm (THREAD);
2965- CALL_VM_NOCHECK (InterpreterRuntime::monitorexit (THREAD, end));
2966- }
2962+ InterpreterRuntime::monitorexit (end);
29672963 }
29682964 }
29692965 }
@@ -3013,11 +3009,7 @@ BytecodeInterpreter::run(interpreterState istate) {
30133009 THREAD->clear_pending_exception ();
30143010 }
30153011 } else if (UseHeavyMonitors) {
3016- {
3017- // Prevent any HandleMarkCleaner from freeing our live handles.
3018- HandleMark __hm (THREAD);
3019- CALL_VM_NOCHECK (InterpreterRuntime::monitorexit (THREAD, base));
3020- }
3012+ InterpreterRuntime::monitorexit (base);
30213013 if (THREAD->has_pending_exception ()) {
30223014 if (!suppress_error) illegal_state_oop = Handle (THREAD, THREAD->pending_exception ());
30233015 THREAD->clear_pending_exception ();
@@ -3035,11 +3027,7 @@ BytecodeInterpreter::run(interpreterState istate) {
30353027 if (rcvr->cas_set_mark (header, old_header) != old_header) {
30363028 // restore object for the slow case
30373029 base->set_obj (rcvr);
3038- {
3039- // Prevent any HandleMarkCleaner from freeing our live handles
3040- HandleMark __hm (THREAD);
3041- CALL_VM_NOCHECK (InterpreterRuntime::monitorexit (THREAD, base));
3042- }
3030+ InterpreterRuntime::monitorexit (base);
30433031 if (THREAD->has_pending_exception ()) {
30443032 if (!suppress_error) illegal_state_oop = Handle (THREAD, THREAD->pending_exception ());
30453033 THREAD->clear_pending_exception ();
0 commit comments