RFR: 8349002: GenShen: Deadlock during shutdown

Aleksey Shipilev shade at openjdk.org
Thu Jan 30 13:08:47 UTC 2025


On Wed, 29 Jan 2025 21:53:05 GMT, William Kemper <wkemper at openjdk.org> wrote:

> [JDK-8345970](https://bugs.openjdk.org/browse/JDK-8345970) changed the order in which the control thread and regulator thread are shutdown. The new order (in which the control thread is shutdown first), may leave the regulator thread waiting indefinitely for a gc cycle that will never start.

So, setting GC mode to `stopped` is enough to notify regulator thread that it should exit? If so, looks fine.

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

Marked as reviewed by shade (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/23358#pullrequestreview-2583855191


More information about the hotspot-gc-dev mailing list