[jdk20] Integrated: 8298296: gc/TestFullGCCount.java fails with "System.gc collections miscounted."

Kim Barrett kbarrett at openjdk.org
Wed Dec 14 13:40:35 UTC 2022


On Mon, 12 Dec 2022 04:48:06 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:

> Please review this change to the gc/TestFullGCCount.java test to account for
> the changes in JDK-8297247.  The test was not updated by that change to
> account for the new separation by G1 of STW full gc counts from concurrent
> cycle counts in the GarbageCollectorMXBean.
> 
> To address this, the test has been changed to not be run if using G1 and
> -XX:+ExplicitGCInvokesConcurrent.
> 
> Testing:
> Verified the unmodified test fails when using G1 and +ExplicitGCInvokesConcurrent.
> After updating the test, ran it with G1 selected and both with and without
> ExplicitGCInvokesConcurrent.  With now suppresses the test, without runs it
> successfully.

This pull request has now been integrated.

Changeset: 27917014
Author:    Kim Barrett <kbarrett at openjdk.org>
URL:       https://git.openjdk.org/jdk20/commit/279170147a10ec2da2242b4dcb3279c41c471000
Stats:     3 lines in 2 files changed: 2 ins; 1 del; 0 mod

8298296: gc/TestFullGCCount.java fails with "System.gc collections miscounted."

Reviewed-by: tschatzl, ayang

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

PR: https://git.openjdk.org/jdk20/pull/16


More information about the hotspot-gc-dev mailing list