Implicit in-heap check in G1CollectedHeap::in_cset_fast_test() not always required

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Duplicate
    • Priority: P4
    • 9
    • Affects Version/s: hs25, 8
    • Component/s: hotspot
    • gc

      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.

            Assignee:
            Unassigned
            Reporter:
            Thomas Schatzl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: