[OpenJDK 2D-Dev] RFR: 8253795: Implementation of JEP 391: macOS/AArch64 Port [v23]
gziemski at openjdk.java.net
Wed Mar 3 16:00:00 UTC 2021
On Tue, 2 Mar 2021 23:21:28 GMT, David Holmes <dholmes at openjdk.org> wrote:
> Note that `thread` can be NULL here if the signal handler is running in a non-attached thread. If we then perform:
> `ThreadWXEnable(WXMode new_mode, Thread* thread = NULL) : _thread(thread ? thread : Thread::current()),`
> we call Thread::current() on a non-attached thread and that will assert/crash if we get NULL. Either avoid using WX when the thread is NULL, or else change to use Thread::current_or_null_safe() and ensure all uses have a NULL check.
https://bugs.openjdk.java.net/browse/JDK-8262903 tracks this issue.
More information about the 2d-dev