JDK-8213113 : Dead code related to UseAdaptiveSizePolicy in ParNewGeneration
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 12
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-10-30
  • Updated: 2018-11-15
  • Resolved: 2018-11-09
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 12
12 b20Fixed
Related Reports
Relates :  
Relates :  
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.