RFR: 8271215: Fix data races in G1PeriodicGCTask

Aleksey Shipilev shade at openjdk.java.net
Mon Jul 26 07:42:08 UTC 2021


On Sat, 24 Jul 2021 09:02:24 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:

> Please review this small change to G1PeriodicGCTask, eliminating unlikely
> but possible data races with a concurrently running GC pause.  An STS-joiner
> is used to ensure there isn't a GC pause while doing the checks to decide
> whether to perform a periodic GC.
> 
> Testing:
> mach5 tier1

Looks fine.

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

Marked as reviewed by shade (Reviewer).

PR: https://git.openjdk.java.net/jdk/pull/4899



More information about the hotspot-gc-dev mailing list