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

Shenandoah: conc/par GC threads ergonomics overrides user settings

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8-shenandoah, 11-shenandoah, 13, 14
    • Fix Version/s: 14
    • Component/s: hotspot
    • Subcomponent:
      gc
    • Resolved In Build:
      b18

      Description

      Seen with serviceability/sa/ClhsdbFlags.java, which sets ParallelGCThreads=1. Then Shenandoah heuristics acts and sets ConcGCThreads=2. Then Shenandoah adjustment kicks in, figures ParallelGCThreads < ConcGCThreads, and bumps ParallelGCThreads to 2, overriding the user setting and failing the test.

      $ CONF=linux-x86_64-server-fastdebug make images run-test TEST=serviceability/sa/ClhsdbFlags.java TEST_VM_OPTS="-XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC"

      hashCode = 5 default
      ]
       exitValue = -1

       LingeredApp stdout: [];
       LingeredApp stderr: [OpenJDK 64-Bit Server VM warning: Shenandoah expects ConcGCThreads <= ParallelGCThreads, adjusting ParallelGCThreads automatically
      ]
       LingeredApp exitValue = 0
      java.lang.RuntimeException: Test ERROR java.lang.RuntimeException: 'ParallelGCThreads = 1' missing from stdout/stderr

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                shade Aleksey Shipilev
                Reporter:
                shade Aleksey Shipilev
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: