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

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 10
    • Affects Version/s: 10
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: