/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*
*/
#include "precompiled.hpp"
#include "gc_implementation/g1/g1CollectedHeap.inline.hpp"
#include "gc_implementation/g1/g1CollectorPolicy.hpp"
#include "gc_implementation/g1/heapRegion.hpp"
#include "gc_implementation/g1/survRateGroup.hpp"
#include "memory/allocation.hpp"
const char* name,
_stats_arrays_length(0) {
reset();
if (summary_surv_rates_len > 0) {
_summary_surv_rates[i] = new NumberSeq();
}
}
}
_setup_seq_num = 0;
_accum_surv_rate = 0.0;
_last_pred = 0.0;
// the following will set up the arrays with length 1
_region_num = 1;
// The call to stop_adding_regions() will use "new" to refill
// the _surv_rate_pred array, so we need to make sure to call
// "delete".
for (size_t i = 0; i < _stats_arrays_length; ++i) {
delete _surv_rate_pred[i];
}
_stats_arrays_length = 0;
all_surviving_words_recorded(false);
_region_num = 0;
}
void
_region_num = 0;
_accum_surv_rate = 0.0;
}
void
if (_region_num > _stats_arrays_length) {
for (size_t i = 0; i < _stats_arrays_length; ++i) {
_surv_rate_pred[i] = old_surv_rate_pred[i];
}
}
if (old_surv_rate != NULL) {
}
if (old_accum_surv_rate_pred != NULL) {
}
if (old_surv_rate_pred != NULL) {
}
}
for (size_t i = 0; i < _stats_arrays_length; ++i) {
_surv_rate[i] = 0.0;
}
}
double
// we might relax this one in the future...
if (adjustment > 0) {
}
return ret;
}
int
++_region_num;
return (int) ++_all_regions_allocated;
}
void
"pre-condition" );
"should only update each slot once" );
}
}
void
"the slot should not have been updated" );
}
}
for (size_t i = 0; i < _stats_arrays_length; ++i) {
_accum_surv_rate_pred[i] = accum;
// gclog_or_tty->print_cr("age %3d, accum %10.2lf", i, accum);
}
_last_pred = pred;
}
#ifndef PRODUCT
void
_name, _region_num);
for (size_t i = 0; i < _region_num; ++i) {
i, _surv_rate[i] * 100.0,
}
}
void
if (length == 0)
return;
++index;
}
int num = 0;
int samples = 0;
++num;
++index;
sum = 0.0;
num = 0;
samples = 0;
}
}
}
#endif // PRODUCT