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

G1ParScanThreadState::update_rs does not need to call is_in_reserved

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      gc
    • Resolved In Build:
      b99

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: