JDK-8270908 : TestParallelRefProc fails on single core machines
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 17,18
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-07-19
  • Updated: 2022-10-26
  • Resolved: 2021-07-28
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 17 JDK 18
17 b33Fixed 18Fixed
Related Reports
Relates :  
Description
The test case TestParallelRefProc fails on single core machines, since it expects that ParallelRefProcEnabled is always true if the ParallelGC is used:

test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: [-XX:+UseParallelGC] didn't set ParallelRefProcEnabled to true as expected

According to the code, ParallelRefProcEnabled is only enabled if there are more than 1 ParallelGCThreads. Ergonomics never configure more parallel GC threads than there are CPU cores.
Comments
Changeset: 6e1da644 Author: Christoph Göttschkes <cgo@openjdk.org> Committer: Kim Barrett <kbarrett@openjdk.org> Date: 2021-07-28 14:49:02 +0000 URL: https://git.openjdk.java.net/jdk17/commit/6e1da6440b898d8a10b3db56707a75f32a489149
28-07-2021