Merge
authorjmasa
Thu, 05 Nov 2015 19:15:07 +0000
changeset 33781 b75ab3a5bf66
parent 33779 1ae4ab567b43 (current diff)
parent 33780 b33f59576fa9 (diff)
child 33782 e8ee017b6b6a
Merge
--- a/hotspot/src/share/vm/gc/cms/concurrentMarkSweepGeneration.cpp	Thu Nov 05 15:28:24 2015 +0000
+++ b/hotspot/src/share/vm/gc/cms/concurrentMarkSweepGeneration.cpp	Thu Nov 05 19:15:07 2015 +0000
@@ -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(),