On Tue, 4 Aug 2026 09:32:00 GMT, Kevin Walls <[email protected]> wrote:
>> This test fails quite frequently on Windows, with Serial GC. >> Timer granularity seems to be the problem, no cpu time is counted. >> >> This change is a simple increase in work done to make the cpu time get >> counted as >0 on on Windows. >> Made it a platform-specific increase in work to not slow the test >> unnecessarily, e.g. avoid a significant elapsed time change on some test >> variations on Linux. >> >> --------- >> - [x] I confirm that I make this contribution in accordance with the >> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). > > Kevin Walls has updated the pull request with a new target base due to a > merge or a rebase. The incremental webrev excludes the unrelated changes > brought in by the merge/rebase. The pull request contains two additional > commits since the last revision: > > - Merge branch 'master' into 8386833_TestTotalGcCpuTime > - 8386833: > java/lang/management/MemoryMXBean/TestGetTotalGcCpuTime.java#Serial fails > with "Some GC CPU time must have been reported" exception Looks good. ------------- Marked as reviewed by sspitsyn (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/31805#pullrequestreview-4852873799
