8273483: Zero: Clear pending JNI exception check in native method handler

Reviewed-by: aph
This commit is contained in:
Aleksey Shipilev 2021-09-09 09:46:16 +00:00
parent 8c16f485b3
commit aa9311182a

@ -562,6 +562,12 @@ int ZeroInterpreter::native_entry(Method* method, intptr_t UNUSED, TRAPS) {
}
}
// Already did every pending exception check here.
// If HAS_PENDING_EXCEPTION is true, the interpreter would handle the rest.
if (CheckJNICalls) {
THREAD->clear_pending_jni_exception_check();
}
// No deoptimized frames on the stack
return 0;
}