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

Shenandoah: parallel safepoint workers count should be ParallelGCThreads

    XMLWordPrintable

Details

    • gc
    • b13

    Backports

      Description

        It is currently statically driven by:

          experimental(uint, ShenandoahParallelSafepointThreads, 4, \
                  "Number of parallel threads used for safepoint prolog/epilog") \

        This is troublesome either way:
         *) For small machines or containers where ergonomics figures out ParallelGCThreads=1, this trashes safepoint cleanup with excessive threads;
         *) For large machines where ergonomics figures out ParallelGCThreads >> 4, this holds back parallelism needed at cleanup.

        Should be just driven by ParallelGCThreads. ZGC drives this with ParallelGCThreads. G1 implicitly does the same.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved: