G1: Tighten assertion in G1ScanHRForRegionClosure::scan_heap_roots

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 20
    • Affects Version/s: 20
    • Component/s: hotspot
    • gc
    • b21

      ```
      size_t first_scan_idx = scan.find_next_dirty();
      ...
      assert(*_ct->byte_for_index(region_card_base_idx + first_scan_idx) <= 0x1
      ```

      The first_scan_idx points to a dirty card, so the assert can be `== 0x0`, aka `CardTable::dirty_card_val()`.

            Assignee:
            Albert Yang
            Reporter:
            Albert Yang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: