--- old/src/jdk.hotspot.agent/linux/native/libsaproc/LinuxDebuggerLocal.cpp 2019-11-28 21:31:06.885382200 +0900 +++ new/src/jdk.hotspot.agent/linux/native/libsaproc/LinuxDebuggerLocal.cpp 2019-11-28 21:31:06.646456000 +0900 @@ -608,3 +608,15 @@ return result; } + +/* + * Class: sun_jvm_hotspot_debugger_linux_LinuxDebuggerLocal + * Method: findLibPtrByAddress0 + * Signature: (J)J + */ +extern "C" +JNIEXPORT jlong JNICALL Java_sun_jvm_hotspot_debugger_linux_LinuxDebuggerLocal_findLibPtrByAddress0 + (JNIEnv *env, jobject this_obj, jlong pc) { + struct ps_prochandle* ph = get_proc_handle(env, this_obj); + return reinterpret_cast(find_lib_by_address(ph, pc)); +}