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

Parallel WeakProcessor may use too few threads

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 16
    • Fix Version/s: 16
    • Component/s: hotspot
    • Subcomponent:
      gc
    • Resolved In Build:
      b32

      Backports

        Description

        WeakProcessor::ergo_workers is used to determine the number of threads to use for parallel weak processing. It should be called with the maximum number of threads to use, and may scale that down based on the number of weak references and ReferencesPerThread.

        However, the value it is being called with is the active_workers() value of the work gang, rather than the total_workers(). Because of this, the result may be more limited than intended, leading to longer processing times.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                kbarrett Kim Barrett
                Reporter:
                kbarrett Kim Barrett
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: