RFR: 8334594: Generational ZGC: Deadlock after OopMap rewrites in 8331572

Coleen Phillimore coleenp at openjdk.org
Thu Jun 20 12:41:12 UTC 2024


On Thu, 20 Jun 2024 09:11:04 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

> As shown in the bug, there are cases when acquiring the `ServiceLock` for opportunistic notification leads to deadlock. We can untie the deadlock by checking if `ServiceLock` can be acquired on triggering path, and never blocking otherwise.
> 
> Additional testing:
>  - [ ] Linux x86_64 service fastdebug, `all`
>  - [ ] Linux AArch64 service fastdebug, `all`

Seems like a good workaround.

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

Marked as reviewed by coleenp (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/19800#pullrequestreview-2130311043


More information about the shenandoah-dev mailing list