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

Dead code related to UseAdaptiveSizePolicy in ParNewGeneration

    XMLWordPrintable

    Details

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

      Description

      Because CMS does not support UseAdaptiveSizePolicy, code blocks guarded by UseAdaptiveSizePolicy are dead code in ParNewGeneration. This includes:
      ParNewGeneration::_survivor_overflow and its accessor methods;
      calls to size_policy->minor_collection_begin(), size_policy->minor_collection_end(), size_policy->avg_survived()->sample().

      We should remove most code except minor_collection_begin() and minor_collection_end(), which could be used by UseGCOverheadLimit if it works for CMS in the future.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              manc Man Cao
              Reporter:
              manc Man Cao
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: