< prev index next >
src/share/vm/gc/g1/collectionSetChooser.hpp
Print this page
rev 8461 : imported patch webrev1.patch
rev 8462 : [mq]: version3
*** 101,114 ****
CollectionSetChooser();
void sort_regions();
// Determine whether to add the given region to the CSet chooser or
! // not. Currently, we skip humongous regions (we never add them to
! // the CSet, we only reclaim them during cleanup) and archive regions,
! // which are both "pinned", and regions whose live bytes are over the
! // threshold.
bool should_add(HeapRegion* hr) {
assert(hr->is_marked(), "pre-condition");
assert(!hr->is_young(), "should never consider young regions");
return !hr->is_pinned() &&
hr->live_bytes() < _region_live_threshold_bytes;
--- 101,112 ----
CollectionSetChooser();
void sort_regions();
// Determine whether to add the given region to the CSet chooser or
! // not. Currently, we skip pinned regions and regions whose live
! // bytes are over the threshold. Humongous regions may be reclaimed during cleanup.
bool should_add(HeapRegion* hr) {
assert(hr->is_marked(), "pre-condition");
assert(!hr->is_young(), "should never consider young regions");
return !hr->is_pinned() &&
hr->live_bytes() < _region_live_threshold_bytes;
< prev index next >