On Wed, 12 Jan 2022 19:29:48 GMT, Markus Grönlund <mgron...@openjdk.org> wrote:

> Speaking of the thread sampler, to ensure stability, you also need a working 
> implementation of os::ThreadCrashProtection. I can see there is the one in 
> os_posix.cpp, and maybe that is the one already in use? Or does there need to 
> be a specialization in os_aix.cpp? Please see 
> https://bugs.openjdk.java.net/browse/JDK-8279077 for more details about crash 
> protection.

Thanks for bringing this to my attention @mgronlun. I spent some time looking 
over crash protection, and I believe the implementation in os_posix is brought 
in for >= jdk16. If I understand the project history (especially relating to 
the issue you linked), this would not necessarily be true for the project 
before jdk 16, so it will need to be considered if this change is backported.

Is there a way to be sure that ThreadCrashProtection is present on AIX? I have 
forced a segfault, and it appears to behave the same on Linux x86 as it does on 
AIX Power.

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

PR: https://git.openjdk.java.net/jdk/pull/6885

Reply via email to