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

G1: Refactor G1ConcurrentMark::_num_concurrent_workers

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 22
    • 22
    • hotspot
    • gc
    • b12

    Description

      `G1ConcurrentMark::_num_concurrent_workers` tracks the actual num of threads used for conc-marking, but can fail to do so due to potential failure in `set_active_workers`.

      The use in `scan_root_regions` should probably be replaced with the max value, because scanning-root-regions are not "interruptible" -- can't abort in the middle. `calc_active_marking_workers()` is a good trade-off on balancing both mutator/gc progressing, but not necessarily suitable for scan-root-regions.

      Attachments

        Issue Links

          Activity

            People

              ayang Albert Yang
              ayang Albert Yang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: