Integrated: 8329651: TestLibGraal.java crashes with assert(_stack_base != nullptr)
David Holmes
dholmes at openjdk.org
Fri Apr 5 00:32:13 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
This pull request has now been integrated.
Changeset: 27cfcef9
Author: David Holmes <dholmes at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/27cfcef99f1acae1ba0beb49d01acbc47154a54b
Stats: 5 lines in 1 file changed: 2 ins; 0 del; 3 mod
8329651: TestLibGraal.java crashes with assert(_stack_base != nullptr)
Reviewed-by: stefank, dcubed
-------------
PR: https://git.openjdk.org/jdk/pull/18615
More information about the hotspot-runtime-dev
mailing list