--- old/hotspot/src/cpu/aarch64/vm/templateInterpreterGenerator_aarch64.cpp 2016-08-19 12:32:30.526493527 +0200 +++ new/hotspot/src/cpu/aarch64/vm/templateInterpreterGenerator_aarch64.cpp 2016-08-19 12:32:30.378490215 +0200 @@ -1355,6 +1355,11 @@ // reset_last_Java_frame __ reset_last_Java_frame(true, true); + if (CheckJNICalls) { + // clear_pending_jni_exception_check + __ str(zr, Address(rthread, JavaThread::pending_jni_exception_check_fn_offset()); + } + // reset handle block __ ldr(t, Address(rthread, JavaThread::active_handles_offset())); __ str(zr, Address(t, JNIHandleBlock::top_offset_in_bytes()));