--- old/hotspot/src/cpu/x86/vm/sharedRuntime_x86_32.cpp 2016-08-19 12:32:32.042527458 +0200 +++ new/hotspot/src/cpu/x86/vm/sharedRuntime_x86_32.cpp 2016-08-19 12:32:31.898524235 +0200 @@ -2236,6 +2236,11 @@ __ verify_oop(rax); } + if (CheckJNICalls) { + // clear_pending_jni_exception_check + __ movptr(Address(thread, JavaThread::pending_jni_exception_check_fn_offset()), NULL_WORD); + } + if (!is_critical_native) { // reset handle block __ movptr(rcx, Address(thread, JavaThread::active_handles_offset()));