RFR(XS) 8153834: G1 Card table verification fails due to concurrent region cleanup
thomas.schatzl at oracle.com
Tue Apr 12 12:49:54 UTC 2016
On Tue, 2016-04-12 at 14:33 +0200, Mikael Gerdin wrote:
> Hi all,
> Please review this small fix to an issue with -XX:+G1VerifyCTCleanup
> discovered recently.
> The problem is that concurrent region freeing
> (G1ConcurrentMark::complete_cleanup()) can run concurrently with a
> gc after the cleanup pause. If the concurrent cleanup is not finished
> when the young gc verifies the card table then the verification can
> 0s in the card table where there should be none.
> Suggested fix is to have not-PRODUCT vms await concurrent region
> before verifying the card table by calling
> Bug: https://bugs.openjdk.java.net/browse/JDK-8153834
> Webrev: http://cr.openjdk.java.net/~mgerdin/8153834/webrev.0
> Testing: RBT GC testing in progress, local testing of reproducer
looks good to me.
More information about the hotspot-gc-dev