JDK-8219100 : Improve do_collection_pause_at_safepoint
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 13
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-02-15
  • Updated: 2019-04-16
  • Resolved: 2019-03-25
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 13
13 b14Fixed
Related Reports
Blocks :  
Blocks :  
Description
The main method for doing young collection (everything in G1CollectedHeap::do_collection_pause_at_safepoint()) should be reorganized a little - it's one of the larger methods in G1CollectedHeap code and over time got really messy.

There is a bit of everything here mixed together implicating dependencies where there are likely none. Group together related initialization (collection set, alloc regions, ...) a bit more.

(This is considered a first attempt on cleaning this problem up a little, not necessarily a full-scale refactoring)