提交 13ccdda0 编写于 作者: Y ysr

6999988: CMS: Increased fragmentation leading to promotion failure after CR#6631166 got implemented

Summary: Fix calculation of _desired, in free list statistics, which was missing an intended set of parentheses.
Reviewed-by: poonam, jmasa
上级 a54411a3
...@@ -116,10 +116,8 @@ class AllocationStats VALUE_OBJ_CLASS_SPEC { ...@@ -116,10 +116,8 @@ class AllocationStats VALUE_OBJ_CLASS_SPEC {
_demand_rate_estimate.sample(rate); _demand_rate_estimate.sample(rate);
float new_rate = _demand_rate_estimate.padded_average(); float new_rate = _demand_rate_estimate.padded_average();
ssize_t old_desired = _desired; ssize_t old_desired = _desired;
_desired = (ssize_t)(new_rate * (inter_sweep_estimate float delta_ise = (CMSExtrapolateSweep ? intra_sweep_estimate : 0.0);
+ CMSExtrapolateSweep _desired = (ssize_t)(new_rate * (inter_sweep_estimate + delta_ise));
? intra_sweep_estimate
: 0.0));
if (PrintFLSStatistics > 1) { if (PrintFLSStatistics > 1) {
gclog_or_tty->print_cr("demand: %d, old_rate: %f, current_rate: %f, new_rate: %f, old_desired: %d, new_desired: %d", gclog_or_tty->print_cr("demand: %d, old_rate: %f, current_rate: %f, new_rate: %f, old_desired: %d, new_desired: %d",
demand, old_rate, rate, new_rate, old_desired, _desired); demand, old_rate, rate, new_rate, old_desired, _desired);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册