RFR: 8335289: GenShen: Whitebox breakpoint GC requests may cause assertions

Kelvin Nilsen kdnilsen at openjdk.org
Fri Jun 28 16:25:33 UTC 2024


On Thu, 27 Jun 2024 23:02:41 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.

Marked as reviewed by kdnilsen (Committer).

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

PR Review: https://git.openjdk.org/shenandoah/pull/453#pullrequestreview-2148427119


More information about the shenandoah-dev mailing list