提交 c6836afa 编写于 作者: J jmasa

8135318: CMS wrong max_eden_size for check_gc_overhead_limit

Reviewed-by: jmasa, simonis
Contributed-by: ivan.galkin@sap.com
上级 f0eec57d
......@@ -1928,9 +1928,7 @@ NOT_PRODUCT(
// Has the GC time limit been exceeded?
DefNewGeneration* young_gen = _young_gen->as_DefNewGeneration();
size_t max_eden_size = young_gen->max_capacity() -
young_gen->to()->capacity() -
young_gen->from()->capacity();
size_t max_eden_size = young_gen->max_eden_size();
GenCollectedHeap* gch = GenCollectedHeap::heap();
GCCause::Cause gc_cause = gch->gc_cause();
size_policy()->check_gc_overhead_limit(_young_gen->used(),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册