On Fri, 2 Oct 2026 05:40:37 GMT, David Holmes <[email protected]> wrote:

> I wonder how the BSD-port will implement this functionality ...

The pure BSD port is in its own repo. The java classes are used to support both 
macOS and BSD. However, BSD does not use MacosxDebuggerLocal.m as the JNI 
native interface to SA's BSD java classes. The BSD port has its own natives in 
src/jdk.hotspot.agent/bsd/native/libsaproc, which is not part of mainline 
openjdk.

macOS uses a mix of mach and BSD APSs for the kernel attach support (I think 
ptrace is the only BSD api it uses). The BSD port just uses BSD APIs, so it 
wouldn't have this timing issue we see when using a mix of BSD and mach APIs.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/33158#issuecomment-5955384229

Reply via email to