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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 10
    • 10
    • hotspot
    • gc
    • b36

      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.

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

              Created:
              Updated:
              Resolved: