8000351: Tenuring threshold should be unsigned

Change the flags and variables related to tenuring threshold to be unsigned

Reviewed-by: jmasa, johnc
This commit is contained in:
Jesper Wilhelmsson 2012-10-03 20:31:41 +02:00
parent 88ab075a6d
commit 3506d44c57
22 changed files with 55 additions and 55 deletions

View file

@ -1195,9 +1195,9 @@ void CMSAdaptiveSizePolicy::compute_tenured_generation_free_space(
set_promo_size(desired_promo_size);
}
int CMSAdaptiveSizePolicy::compute_survivor_space_size_and_threshold(
uint CMSAdaptiveSizePolicy::compute_survivor_space_size_and_threshold(
bool is_survivor_overflow,
int tenuring_threshold,
uint tenuring_threshold,
size_t survivor_limit) {
assert(survivor_limit >= generation_alignment(),
"survivor_limit too small");
@ -1315,7 +1315,7 @@ int CMSAdaptiveSizePolicy::compute_survivor_space_size_and_threshold(
gclog_or_tty->print( " avg_promoted_padded_avg: %f"
" avg_pretenured_padded_avg: %f"
" tenuring_thresh: %d"
" tenuring_thresh: %u"
" target_size: " SIZE_FORMAT
" survivor_limit: " SIZE_FORMAT,
gch->gc_stats(1)->avg_promoted()->padded_average(),

View file

@ -440,9 +440,9 @@ class CMSAdaptiveSizePolicy : public AdaptiveSizePolicy {
size_t max_eden_size);
// Calculates new survivor space size; returns a new tenuring threshold
// value. Stores new survivor size in _survivor_size.
virtual int compute_survivor_space_size_and_threshold(
virtual uint compute_survivor_space_size_and_threshold(
bool is_survivor_overflow,
int tenuring_threshold,
uint tenuring_threshold,
size_t survivor_limit);
virtual void compute_tenured_generation_free_space(size_t cur_tenured_free,