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

G1: Remove assertion in G1ScanHRForRegionClosure::do_claimed_block

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 21
    • None
    • hotspot
    • gc
    • b20

      #ifdef ASSERT
          HeapRegion* hr = _g1h->region_at_or_null(region_idx);
          assert(hr == NULL || hr->is_in_reserved(card_start),
                   "Card start " PTR_FORMAT " to scan outside of region %u", p2i(card_start), _g1h->region_at(region_idx)->hrm_index());
      #endif

      In this context, we already know the region must not be null and these dirty cards belong to that region, so this assertion is not really useful.

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

              Created:
              Updated:
              Resolved: