JDK-7145572 : CMS: optimize nmethod lists to reduce scanning
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 8-pool
  • Priority: P3
  • Status: Closed
  • Resolution: Not an Issue
  • OS: generic
  • CPU: generic
  • Submitted: 2012-02-14
  • Updated: 2019-12-14
  • Resolved: 2019-12-14
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.
Other
tbdResolved
Related Reports
Relates :  
Relates :  
Description
The current mechanism that maintains the scavenge roots in nmethods list is unsuitable for CMS. The list implies that there are two types of collections: young (after which the list should be pruned) and full (during which we would scan the whole code cache). So, currently CMS doesn't prune this list at all, which means that the list can grow pretty big. For CMS we should actually maintain two lists: one that contains nmethods that point to the young gen and the other one that contains pointers to the old gen. Hopefully the seconds list would be smaller than the whole set of nmethods.

Comments
CMS has been removed - JDK-8229049
14-12-2019