--- old/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/debugger/linux/LinuxDebuggerLocal.java 2019-12-15 10:42:38.098141200 +0900 +++ new/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/debugger/linux/LinuxDebuggerLocal.java 2019-12-15 10:42:37.451757000 +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