8253540: InterpreterRuntime::monitorexit should be a JRT_LEAF function

Reviewed-by: rehn, mdoerr, dcubed, pchilanomate
This commit is contained in:
Coleen Phillimore 2020-09-28 15:49:02 +00:00
parent 0054c15f60
commit 77a0f3999a
10 changed files with 45 additions and 64 deletions

View file

@ -459,10 +459,8 @@ int ZeroInterpreter::native_entry(Method* method, intptr_t UNUSED, TRAPS) {
if (header.to_pointer() != NULL) {
markWord old_header = markWord::encode(lock);
if (rcvr->cas_set_mark(header, old_header) != old_header) {
monitor->set_obj(rcvr); {
HandleMark hm(thread);
CALL_VM_NOCHECK(InterpreterRuntime::monitorexit(thread, monitor));
}
monitor->set_obj(rcvr);
InterpreterRuntime::monitorexit(monitor);
}
}
}