JDK-8027554 : Implicit in-heap check in G1CollectedHeap::in_cset_fast_test() not always required
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: hs25,8
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2013-10-30
  • Updated: 2014-04-08
  • Resolved: 2014-02-20
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
9Resolved
Related Reports
Duplicate :  
Relates :  
Description
G1CollectedHeap::in_cset_fast_test() implicitly checks whether the given reference is within the G1 heap. Particularly in some closure code, this check is already performed earlier (mostly the NULL check).

This additional check is not required in these cases.

The suggestion is to add a variant that does not do this implicit bounds check.
Comments
Note that the use of G1BiasedArray in JDK-8027553 would get you the necessary asserts for free, so it is advantageous to do that first.
30-10-2013