G1: Remove assertion in G1ScanHRForRegionClosure::do_claimed_block

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 21
    • Affects Version/s: None
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: