< prev index next >

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

Print this page

        

*** 71,83 **** // collection without removing it from the CSet chooser. HeapRegion* peek() { HeapRegion* res = NULL; if (_front < _end) { res = regions_at(_front); ! assert(res != NULL, ! err_msg("Unexpected NULL hr in _regions at index %u", ! _front)); } return res; } // Remove the given region from the CSet chooser and move to the --- 71,81 ---- // collection without removing it from the CSet chooser. HeapRegion* peek() { HeapRegion* res = NULL; if (_front < _end) { res = regions_at(_front); ! assert(res != NULL, "Unexpected NULL hr in _regions at index %u", _front); } return res; } // Remove the given region from the CSet chooser and move to the
*** 86,98 **** HeapRegion* hr = regions_at(_front); assert(hr != NULL, "pre-condition"); assert(_front < _end, "pre-condition"); regions_at_put(_front, NULL); assert(hr->reclaimable_bytes() <= _remaining_reclaimable_bytes, ! err_msg("remaining reclaimable bytes inconsistent " "from region: " SIZE_FORMAT " remaining: " SIZE_FORMAT, ! hr->reclaimable_bytes(), _remaining_reclaimable_bytes)); _remaining_reclaimable_bytes -= hr->reclaimable_bytes(); _front += 1; return hr; } --- 84,96 ---- HeapRegion* hr = regions_at(_front); assert(hr != NULL, "pre-condition"); assert(_front < _end, "pre-condition"); regions_at_put(_front, NULL); assert(hr->reclaimable_bytes() <= _remaining_reclaimable_bytes, ! "remaining reclaimable bytes inconsistent " "from region: " SIZE_FORMAT " remaining: " SIZE_FORMAT, ! hr->reclaimable_bytes(), _remaining_reclaimable_bytes); _remaining_reclaimable_bytes -= hr->reclaimable_bytes(); _front += 1; return hr; }
< prev index next >