< prev index next >
src/hotspot/share/gc/g1/g1Policy.cpp
Print this page
rev 57039 : imported patch 8227739-merge-scan-rs-update-rs-cost
rev 57040 : imported patch 8227739-sjohanss-review
rev 57044 : imported patch 8227434-g1-predictions-overflow
rev 57051 : imported patch 8233588-cleanup-survrategroup
rev 57053 : imported patch 8231579-incremental-calculation-wrong
rev 57058 : imported patch 8234587-rename-g1survrategroup
*** 60,71 ****
_full_collection_start_sec(0.0),
_collection_pause_end_millis(os::javaTimeNanos() / NANOSECS_PER_MILLISEC),
_young_list_target_length(0),
_young_list_fixed_length(0),
_young_list_max_length(0),
! _eden_surv_rate_group(new SurvRateGroup()),
! _survivor_surv_rate_group(new SurvRateGroup()),
_reserve_factor((double) G1ReservePercent / 100.0),
_reserve_regions(0),
_young_gen_sizer(G1YoungGenSizer::create_gen_sizer()),
_free_regions_at_end_of_collection(0),
_rs_length(0),
--- 60,71 ----
_full_collection_start_sec(0.0),
_collection_pause_end_millis(os::javaTimeNanos() / NANOSECS_PER_MILLISEC),
_young_list_target_length(0),
_young_list_fixed_length(0),
_young_list_max_length(0),
! _eden_surv_rate_group(new G1SurvRateGroup()),
! _survivor_surv_rate_group(new G1SurvRateGroup()),
_reserve_factor((double) G1ReservePercent / 100.0),
_reserve_regions(0),
_young_gen_sizer(G1YoungGenSizer::create_gen_sizer()),
_free_regions_at_end_of_collection(0),
_rs_length(0),
*** 458,468 ****
_eden_surv_rate_group->start_adding_regions();
// also call this on any additional surv rate groups
_free_regions_at_end_of_collection = _g1h->num_free_regions();
- // Reset survivors SurvRateGroup.
_survivor_surv_rate_group->reset();
update_young_list_max_and_target_length();
update_rs_length_prediction();
_pending_cards_at_prev_gc_end = _g1h->pending_card_num();
--- 458,467 ----
*** 1389,1400 ****
log_debug(gc, ergo, cset)("Prepared %u regions out of %u for optional evacuation. Predicted time: %.3fms",
num_optional_regions, max_optional_regions, prediction_ms);
}
void G1Policy::transfer_survivors_to_cset(const G1SurvivorRegions* survivors) {
-
- // Add survivor regions to SurvRateGroup.
note_start_adding_survivor_regions();
HeapRegion* last = NULL;
for (GrowableArrayIterator<HeapRegion*> it = survivors->regions()->begin();
it != survivors->regions()->end();
--- 1388,1397 ----
< prev index next >