RFR: 8329651: TestLibGraal.java crashes with assert(_stack_base != nullptr)

Stefan Karlsson stefank at openjdk.org
Thu Apr 4 09:05:11 UTC 2024


On Thu, 4 Apr 2024 07:58:01 GMT, David Holmes <dholmes at openjdk.org> wrote:

> The first thing a new thread does is record its stack size and base. But it is made visible to the rest of the system prior to that. So  we have a risk of trying to print information for a thread that may never have actually executed yet. `Thread::print_on_error` should access the `_stack_base` and `_stack_size` fields directly, not through the accessors with the assert.
> 
> Testing:
>  - tiers 1-3 (sanity)
> 
> Thanks

Marked as reviewed by stefank (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/18615#pullrequestreview-1979240052


More information about the hotspot-runtime-dev mailing list