RFR: 8282475: SafeFetch should not rely on existence of Thread::current [v6]
David Holmes
dholmes at openjdk.java.net
Thu Mar 10 10:20:42 UTC 2022
On Thu, 10 Mar 2022 07:31:47 GMT, Anton Kozlov <akozlov at openjdk.org> wrote:
> How in general safe to call SafeFetch on a native thread that has no Thread object? The JVM has not initialized the thread, so there could be no JVM signal handler installed.
@AntonKozlov Signal handlers are per-process not per-thread, so a thread need not be attached to the VM for our signal handlers to get involved - that is why they call `Thread::current_or_null_safe()`.
-------------
PR: https://git.openjdk.java.net/jdk/pull/7727
More information about the shenandoah-dev
mailing list