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

Run G1CMRemarkTask with the appropriate amount of threads instead of starting up everyone

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 10
    • Fix Version/s: 10
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      gc
    • Resolved In Build:
      b36

      Description

      In G1CMRemarkTask::work() there is this code:

      if (worker_id < _cm->active_tasks()) {
        // do remark
      }

      and we start the G1CMRemarkTask with all available gc worker threads. This means that basically 3/4 of threads are started to do nothing.

      Just start the G1CMRemarkTask with the appropriate amount of threads in the first place.

        Attachments

          Activity

            People

            • Assignee:
              lkorinth Leo Korinth
              Reporter:
              tschatzl Thomas Schatzl
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: