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

G1: Tighten assertion in G1ScanHRForRegionClosure::scan_heap_roots

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 20
    • 20
    • 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()`.

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

              Created:
              Updated:
              Resolved: