提交 7ff624f9 编写于 作者: T tamao

8007764: Wrong initialized value of max_gc_pause_sec for an instance of class AdaptiveSizePolicy

Summary: This is a fix of an initialization mistake for class AdaptiveSizePolicy.
Reviewed-by: jmasa
Contributed-by: NTao Mao <tao.mao@oracle.com>
上级 5274c2c3
......@@ -168,11 +168,11 @@ size_t GenCollectorPolicy::bound_minus_alignment(size_t desired_size,
void GenCollectorPolicy::initialize_size_policy(size_t init_eden_size,
size_t init_promo_size,
size_t init_survivor_size) {
const double max_gc_minor_pause_sec = ((double) MaxGCMinorPauseMillis)/1000.0;
const double max_gc_pause_sec = ((double) MaxGCPauseMillis)/1000.0;
_size_policy = new AdaptiveSizePolicy(init_eden_size,
init_promo_size,
init_survivor_size,
max_gc_minor_pause_sec,
max_gc_pause_sec,
GCTimeRatio);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册