mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8164086: Checked JNI pending exception check should be cleared when returning to Java frame
Transitions to Java clear the pending pointer Reviewed-by: dholmes, neliasso, coleenp
This commit is contained in:
parent
c719b0171c
commit
1c2da5f5ed
14 changed files with 381 additions and 3 deletions
|
@ -2765,6 +2765,11 @@ nmethod* SharedRuntime::generate_native_wrapper(MacroAssembler* masm,
|
|||
__ verify_oop(I0);
|
||||
}
|
||||
|
||||
if (CheckJNICalls) {
|
||||
// clear_pending_jni_exception_check
|
||||
__ st_ptr(G0, G2_thread, JavaThread::pending_jni_exception_check_fn_offset());
|
||||
}
|
||||
|
||||
if (!is_critical_native) {
|
||||
// reset handle block
|
||||
__ ld_ptr(G2_thread, in_bytes(JavaThread::active_handles_offset()), L5);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue