< prev index next >
src/hotspot/share/gc/g1/g1Policy.hpp
Print this page
rev 55208 : imported patch 8220089.webrev.0
rev 55209 : imported patch 8220089.webrev.1
rev 55210 : imported patch 8220089.webrev.2
@@ -123,10 +123,18 @@
void set_region_eden(HeapRegion* hr) {
hr->set_eden();
hr->install_surv_rate_group(_short_lived_surv_rate_group);
}
+ void set_region_eden_from_survivor(HeapRegion* hr) {
+ hr->set_eden_pre_gc();
+
+ // The given heap region does not yet have a survivor surv rate group. So no need
+ // to uninstall it, but need to install eden surv rate group via retained version.
+ hr->install_surv_rate_group_for_retained(_short_lived_surv_rate_group);
+ }
+
void set_region_survivor(HeapRegion* hr) {
assert(hr->is_survivor(), "pre-condition");
hr->install_surv_rate_group(_survivor_surv_rate_group);
}
< prev index next >