< prev index next >
src/share/vm/gc/g1/g1CollectedHeap.cpp
Print this page
rev 10309 : 8150390: Move rs length sampling data to the sampling thread
Reviewed-by:
*** 1398,1408 ****
// Discard all rset updates
JavaThread::dirty_card_queue_set().abandon_logs();
assert(dirty_card_queue_set().completed_buffers_num() == 0, "DCQS should be empty");
- _young_list->reset_sampled_info();
// At this point there should be no regions in the
// entire heap tagged as young.
assert(check_young_list_empty(true /* check_heap */),
"young list should be empty at this point");
--- 1398,1407 ----
*** 3388,3399 ****
// Start a new incremental collection set for the next pause.
g1_policy()->start_incremental_cset_building();
clear_cset_fast_test();
- _young_list->reset_sampled_info();
-
// Don't check the whole heap at this point as the
// GC alloc regions from this pause have been tagged
// as survivors and moved on to the survivor list.
// Survivor regions will fail the !is_young() check.
assert(check_young_list_empty(false /* check_heap */),
--- 3387,3396 ----
*** 5186,5197 ****
return false;
}
bool success() { return _success; }
};
! bool G1CollectedHeap::check_young_list_empty(bool check_heap, bool check_sample) {
! bool ret = _young_list->check_list_empty(check_sample);
if (check_heap) {
NoYoungRegionsClosure closure;
heap_region_iterate(&closure);
ret = ret && closure.success();
--- 5183,5194 ----
return false;
}
bool success() { return _success; }
};
! bool G1CollectedHeap::check_young_list_empty(bool check_heap) {
! bool ret = _young_list->check_list_empty();
if (check_heap) {
NoYoungRegionsClosure closure;
heap_region_iterate(&closure);
ret = ret && closure.success();
< prev index next >