> 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

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/31805/files
  - new: https://git.openjdk.org/jdk/pull/31805/files/14d87048..4f030b37

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=31805&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=31805&range=00-01

  Stats: 239946 lines in 2528 files changed: 219268 ins; 6972 del; 13706 mod
  Patch: https://git.openjdk.org/jdk/pull/31805.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/31805/head:pull/31805

PR: https://git.openjdk.org/jdk/pull/31805

Reply via email to