JDK-8133042 : Remove some direct accesses of G1Allocator to G1CollectedHeap members
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 9
  • Priority: P5
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2015-08-05
  • Updated: 2015-09-10
  • Resolved: 2015-08-07
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 9
9 b79Fixed
Related Reports
Relates :  
Description
G1Allocator::reuse_retained_old_region() directly accesses the _hr_printer and _old_set members of G1CollectedHeap instead of using the long available accessor methods.

While this is allowed as G1Allocator is a friend of G1CollectedHeap it would be cleaner to just use these public members.