--- old/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/debugger/linux/LinuxDebuggerLocal.java 2019-11-25 14:00:55.296020300 +0900 +++ new/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/debugger/linux/LinuxDebuggerLocal.java 2019-11-25 14:00:54.634581900 +0900 @@ -121,6 +121,13 @@ @Override public native String demangle(String sym); + public native long findLibPtrByAddress0(long pc); + + @Override + public long findLibPtrByAddress(Address pc) { + return findLibPtrByAddress0(pc.asLongValue()); + } + // Note on Linux threads are really processes. When target process is // attached by a serviceability agent thread, only that thread can do // ptrace operations on the target. This is because from kernel's point