changeset 33780:b33f59576fa9

8135318: CMS wrong max_eden_size for check_gc_overhead_limit Reviewed-by: jmasa, simonis Contributed-by: ivan.galkin@sap.com
author jmasa
date Wed, 04 Nov 2015 10:12:37 -0800
parents 3d1e154f3674
children b75ab3a5bf66
files hotspot/src/share/vm/gc/cms/concurrentMarkSweepGeneration.cpp
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/hotspot/src/share/vm/gc/cms/concurrentMarkSweepGeneration.cpp	Thu Nov 05 13:39:03 2015 +0000
+++ b/hotspot/src/share/vm/gc/cms/concurrentMarkSweepGeneration.cpp	Wed Nov 04 10:12:37 2015 -0800
@@ -1542,9 +1542,7 @@
   do_compaction_work(clear_all_soft_refs);
 
   // Has the GC time limit been exceeded?
-  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();
   GCCause::Cause gc_cause = gch->gc_cause();
   size_policy()->check_gc_overhead_limit(_young_gen->used(),
                                          _young_gen->eden()->used(),