7196080: assert(max_heap >= InitialHeapSize) in arguments.cpp
authortamao
Wed, 20 Mar 2013 12:27:03 -0700
changeset 16450 11d5e5944030
parent 16391 7bf8a7699f5f
child 16451 2f68393e1bef
7196080: assert(max_heap >= InitialHeapSize) in arguments.cpp Summary: Remove the related assertions becasue they do not hold here. Reviewed-by: jmasa, tschatzl Contributed-by: tamao <tao.mao@oracle.com>
hotspot/src/share/vm/runtime/arguments.cpp
--- a/hotspot/src/share/vm/runtime/arguments.cpp	Thu Mar 21 09:07:43 2013 +0100
+++ b/hotspot/src/share/vm/runtime/arguments.cpp	Wed Mar 20 12:27:03 2013 -0700
@@ -1169,7 +1169,6 @@
     set_parnew_gc_flags();
   }
 
-  // MaxHeapSize is aligned down in collectorPolicy
   size_t max_heap = align_size_down(MaxHeapSize,
                                     CardTableRS::ct_max_alignment_constraint());
 
@@ -1207,10 +1206,6 @@
     }
 
     // Code along this path potentially sets NewSize and OldSize
-
-    assert(max_heap >= InitialHeapSize, "Error");
-    assert(max_heap >= NewSize, "Error");
-
     if (PrintGCDetails && Verbose) {
       // Too early to use gclog_or_tty
       tty->print_cr("CMS set min_heap_size: " SIZE_FORMAT