Integrated: 8340400: Shenandoah: Whitebox breakpoint GC requests may cause assertions

William Kemper wkemper at openjdk.org
Thu Sep 19 17:57:39 UTC 2024


On Wed, 18 Sep 2024 21:02:23 GMT, William Kemper <wkemper at openjdk.org> wrote:

> When a test requests a concurrent GC breakpoint, the calling thread arranges for itself to block until the concurrent GC thread notifies it that the GC has reached the requested breakpoint (phase). The code that handles the whitebox breakpoint request should therefore not block the caller. An attempt was made to do this, but the request just has the caller thread run in a busy loop without waiting. What's more, this loop resets the requested gc cause on every iteration, which may lead to gc cycles with a wb_breakpoint cause, but no breakpoint set - which violates assertions.

This pull request has now been integrated.

Changeset: 75d5e117
Author:    William Kemper <wkemper at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/75d5e117770590d2432fcfe8d89734c7038d4e55
Stats:     13 lines in 1 file changed: 10 ins; 2 del; 1 mod

8340400: Shenandoah: Whitebox breakpoint GC requests may cause assertions

Reviewed-by: shade

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

PR: https://git.openjdk.org/jdk/pull/21074


More information about the hotspot-gc-dev mailing list