Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8270908

TestParallelRefProc fails on single core machines

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 17, 18
    • Fix Version/s: 17
    • Component/s: hotspot
    • Subcomponent:
      gc
    • Resolved In Build:
      b33

      Backports

        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.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                cgo Christoph Göttschkes
                Reporter:
                cgo Christoph Göttschkes
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: