RFR: 8273373: Zero: Cannot invoke JVM in primordial threads on Zero
Thomas Stuefe
stuefe at openjdk.java.net
Thu Sep 9 06:57:04 UTC 2021
On Wed, 8 Sep 2021 09:19:12 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:
> > Bottomline, we should either be using `pthread_attr_getstack(3)` or our `_initial_thread_stack_(bottom|size)` but not mix them since they may differ. Therefore the proposed patch is correct. The non-zero version of `current_stack_region()` in os_linux.cpp handles the primordial thread stack correctly.
>
> Yes, that seems to be the gist of it. In fact, if I reply `_initial_thread_stack_(bottom|size)` in Zero version of `current_stack_region()` for a primordial thread, gtests also start to pass. But I gather there is no need to continue supporting Zero-specific `current_stack_region()`, and thus dodge the issue altogether by using the code the rest of VM code uses.
Yes, and zero also needs Goetz' fix for the glibc guard size problem in JDK-8169373.
-------------
PR: https://git.openjdk.java.net/jdk/pull/5376
More information about the hotspot-runtime-dev
mailing list