8007764: Wrong initialized value of max_gc_pause_sec for an instance of class AdaptiveSizePolicy
authortamao
Thu, 14 Feb 2013 14:43:01 -0800
changeset 15748 66d805061d7a
parent 15747 b948d0fb65b0
child 15749 fb9693b302a3
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: Tao Mao <tao.mao@oracle.com>
hotspot/src/share/vm/memory/collectorPolicy.cpp
--- a/hotspot/src/share/vm/memory/collectorPolicy.cpp	Thu Feb 14 09:11:43 2013 +0100
+++ b/hotspot/src/share/vm/memory/collectorPolicy.cpp	Thu Feb 14 14:43:01 2013 -0800
@@ -168,11 +168,11 @@
 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);
 }