--- old/src/share/vm/prims/jvmtiExport.cpp 2021-01-25 19:30:52.372010185 +0000 +++ new/src/share/vm/prims/jvmtiExport.cpp 2021-01-25 19:30:52.250008902 +0000 @@ -1239,7 +1239,14 @@ } } +#ifdef AARCH64 + // FIXME: this is just a kludge to get JVMTI going. Compiled + // MethodHandle code doesn't call the JVMTI notify routines, so the + // stack depth we see here is wrong. + state->invalidate_cur_stack_depth(); +#else state->decr_cur_stack_depth(); +#endif }