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.
This additional check is not required in these cases.
The suggestion is to add a variant that does not do this implicit bounds check.
- duplicates
-
JDK-8035326 Assume non-NULL references in G1CollectedHeap::in_cset_fast_test
- Resolved
- relates to
-
JDK-8027553 Change the in_cset_fast_test functionality to use the G1BiasedArray abstraction
- Resolved