AttachListener bsd differences
Sonia Zaldana Calles
szaldana at redhat.com
Mon Mar 4 16:35:21 UTC 2024
Hi folks,
I’m working on JDK-8324683 [0].
I’m hoping to unify the code for attachListener_<os>.cpp for posix
platforms.
While reviewing linux against bsd, I noted a difference in
AttachListener::is_init_trigger().
Both linux and AIX implementations, first try “<current dir>/.attach<pid>”
and failing that, attempt “/tmp/.attach<pid>”. [1][2]
On the other hand, bsd doesn’t attempt “/tmp/.attach<pid>” [3].
I have been trying to do a bit of digging to see if this disparity was
intentional but I have found that this change precedes the MacOS port, so
I’m having trouble coming to a conclusion.
I was wondering if perhaps anyone on this list could shed some light on
this matter and whether it would be acceptable to do the alternate path on
BSD too.
Thanks for your help,
Sonia
[0] https://bugs.openjdk.org/browse/JDK-8324683
[1]
https://github.com/openjdk/jdk/blob/master/src/hotspot/os/linux/attachListener_linux.cpp#L521C3-L529C4
[2]
https://github.com/openjdk/jdk/blob/master/src/hotspot/os/aix/attachListener_aix.cpp#L551C2-L559C4
[3]
https://github.com/openjdk/jdk/blob/master/src/hotspot/os/bsd/attachListener_bsd.cpp#L520C2-L522C4
--
Sonia Zaldaña Calles
Software Engineer, OpenJDK
Red Hat
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/hotspot-runtime-dev/attachments/20240304/58188cb8/attachment.htm>
More information about the hotspot-runtime-dev
mailing list