JDK-8035326 : Assume non-NULL references in G1CollectedHeap::in_cset_fast_test
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 8u20,9
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • CPU: x86
  • Submitted: 2014-02-19
  • Updated: 2014-07-29
  • Resolved: 2014-02-24
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.
8u20Fixed 9 b04Fixed
Related Reports
Duplicate :  
Relates :  
All but one invocations of G1CollectedHeap::in_cset_fast_test already assume or make sure that the referenced object is within the heap (since the perm gen removal).

This additional check is superfluous, and decreases performance.

Change G1CollectedHeap::in_cset_fast_test to not assume that the passed references are NULL references.

The only place where NULL references were possible, is G1ParCopyClosure::do_oop_work(). However extracting the check out allows further code simplifications.