RFR: 8342449: reimplement: JDK-8327114 Attach in Linux may have wrong behavior when pid == ns_pid
Laurence Cable
larry.cable at oracle.com
Wed Nov 13 15:55:33 UTC 2024
On 11/12/24 6:21 PM, Serguei Spitsyn wrote:
> On Tue, 12 Nov 2024 23:52:35 GMT, Laurence Cable <larry.cable at oracle.com> wrote:
>
>> t is not feasible to introspect on the target process to determine if
> it is a JVM or not, this is the best case not to send SIGQUIT to a
> process that is neither catching nor blocking it, where the default is
> to terminate it!
>
> Even if the target process is not terminated with the SIGQUIT it would still be more safe to make sure it is a VM process before sending the SIGQUIT signal. I wonder if the JDP (Java Discovery Protocol) can be used.
it cant since its optional...
> Anyway, this discussion can be separated from this fix.
>
> There is still this question:
>> What mach5 tests were run to make sure the fix caused no regression?
> -------------
>
> PR Comment: https://git.openjdk.org/jdk/pull/21688#issuecomment-2472207465
More information about the serviceability-dev
mailing list