< prev index next >

src/share/vm/gc/g1/collectionSetChooser.cpp

Print this page

        

*** 105,115 **** HeapRegion *prev = NULL; while (index < _length) { HeapRegion *curr = regions_at(index++); guarantee(curr != NULL, "Regions in _regions array cannot be NULL"); guarantee(!curr->is_young(), "should not be young!"); ! guarantee(!curr->is_humongous(), "should not be humongous!"); if (prev != NULL) { guarantee(order_regions(prev, curr) != 1, err_msg("GC eff prev: %1.4f GC eff curr: %1.4f", prev->gc_efficiency(), curr->gc_efficiency())); } --- 105,115 ---- HeapRegion *prev = NULL; while (index < _length) { HeapRegion *curr = regions_at(index++); guarantee(curr != NULL, "Regions in _regions array cannot be NULL"); guarantee(!curr->is_young(), "should not be young!"); ! guarantee(!curr->is_pinned(), "should not be pinned!"); if (prev != NULL) { guarantee(order_regions(prev, curr) != 1, err_msg("GC eff prev: %1.4f GC eff curr: %1.4f", prev->gc_efficiency(), curr->gc_efficiency())); }
*** 147,158 **** verify(); } void CollectionSetChooser::add_region(HeapRegion* hr) { ! assert(!hr->is_humongous(), ! "Humongous regions shouldn't be added to the collection set"); assert(!hr->is_young(), "should not be young!"); _regions.append(hr); _length++; _remaining_reclaimable_bytes += hr->reclaimable_bytes(); hr->calc_gc_efficiency(); --- 147,158 ---- verify(); } void CollectionSetChooser::add_region(HeapRegion* hr) { ! assert(!hr->is_pinned(), ! "Pinned regions shouldn't be added to the collection set"); assert(!hr->is_young(), "should not be young!"); _regions.append(hr); _length++; _remaining_reclaimable_bytes += hr->reclaimable_bytes(); hr->calc_gc_efficiency();
< prev index next >