Mercurial > hg > graal-jvmci-8
comparison src/share/vm/memory/collectorPolicy.cpp @ 8072:fd7b3770c77e
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>
author | tamao |
---|---|
date | Thu, 14 Feb 2013 14:43:01 -0800 |
parents | 1135141fb97e |
children | 82657b6a8cc0 |
comparison
equal
deleted
inserted
replaced
8071:bbc7936779f9 | 8072:fd7b3770c77e |
---|---|
166 | 166 |
167 | 167 |
168 void GenCollectorPolicy::initialize_size_policy(size_t init_eden_size, | 168 void GenCollectorPolicy::initialize_size_policy(size_t init_eden_size, |
169 size_t init_promo_size, | 169 size_t init_promo_size, |
170 size_t init_survivor_size) { | 170 size_t init_survivor_size) { |
171 const double max_gc_minor_pause_sec = ((double) MaxGCMinorPauseMillis)/1000.0; | 171 const double max_gc_pause_sec = ((double) MaxGCPauseMillis)/1000.0; |
172 _size_policy = new AdaptiveSizePolicy(init_eden_size, | 172 _size_policy = new AdaptiveSizePolicy(init_eden_size, |
173 init_promo_size, | 173 init_promo_size, |
174 init_survivor_size, | 174 init_survivor_size, |
175 max_gc_minor_pause_sec, | 175 max_gc_pause_sec, |
176 GCTimeRatio); | 176 GCTimeRatio); |
177 } | 177 } |
178 | 178 |
179 size_t GenCollectorPolicy::compute_max_alignment() { | 179 size_t GenCollectorPolicy::compute_max_alignment() { |
180 // The card marking array and the offset arrays for old generations are | 180 // The card marking array and the offset arrays for old generations are |