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

G1: Refactor range checking in G1BlockOffsetTablePart::block_start* to asserts

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 18
    • Fix Version/s: 18
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      gc
    • Resolved In Build:
      b07

      Description

      G1BlockOffsetTablePart maintains a range limit (`_next_offset_index`) which should be in sync with `HeapRegion::_top`. We should never ask for cards corresponding to addresses ` >= HeapRegion::_top`.
       
      Therefore, we can change the range checking to asserts.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              iwalulya Ivan Walulya
              Reporter:
              iwalulya Ivan Walulya
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: