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

G1ParScanThreadState::update_rs does not need to call is_in_reserved

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • hotspot
    • gc
    • b99

      The method G1ParScanThreadState does not need to call from->is_in_reserved since it already has both the object and the field. Given both the object and the field, the following expression will check if both the object and the field are in the same region:
      ((p ^ obj) >> log2HeapRegionSize) == 0.

            ehelin Erik Helin
            ehelin Erik Helin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: