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

G1: Tighten assertion in G1ScanHRForRegionClosure::scan_heap_roots

    XMLWordPrintable

Details

    • Enhancement
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • 20
    • 20
    • hotspot
    • gc
    • b21

    Description

      ```
      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()`.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: