mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 10:34:38 +02:00
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:
parent
88ab075a6d
commit
3506d44c57
22 changed files with 55 additions and 55 deletions
|
@ -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(),
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue