Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8027554

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • 9
    • hs25, 8
    • 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.

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

              Created:
              Updated:
              Resolved: