Mercurial > hg > graal-jvmci-8
comparison src/share/vm/gc_implementation/concurrentMarkSweep/cmsAdaptiveSizePolicy.cpp @ 6818:22b8d3d181d9
8000351: Tenuring threshold should be unsigned
Summary: Change the flags and variables related to tenuring threshold to be unsigned
Reviewed-by: jmasa, johnc
author | jwilhelm |
---|---|
date | Wed, 03 Oct 2012 20:31:41 +0200 |
parents | f08d439fab8c |
children | 14d3f71f831d |
comparison
equal
deleted
inserted
replaced
6817:f81a7c0c618d | 6818:22b8d3d181d9 |
---|---|
1193 } | 1193 } |
1194 | 1194 |
1195 set_promo_size(desired_promo_size); | 1195 set_promo_size(desired_promo_size); |
1196 } | 1196 } |
1197 | 1197 |
1198 int CMSAdaptiveSizePolicy::compute_survivor_space_size_and_threshold( | 1198 uint CMSAdaptiveSizePolicy::compute_survivor_space_size_and_threshold( |
1199 bool is_survivor_overflow, | 1199 bool is_survivor_overflow, |
1200 int tenuring_threshold, | 1200 uint tenuring_threshold, |
1201 size_t survivor_limit) { | 1201 size_t survivor_limit) { |
1202 assert(survivor_limit >= generation_alignment(), | 1202 assert(survivor_limit >= generation_alignment(), |
1203 "survivor_limit too small"); | 1203 "survivor_limit too small"); |
1204 assert((size_t)align_size_down(survivor_limit, generation_alignment()) | 1204 assert((size_t)align_size_down(survivor_limit, generation_alignment()) |
1205 == survivor_limit, "survivor_limit not aligned"); | 1205 == survivor_limit, "survivor_limit not aligned"); |
1313 gch->gc_stats(1)->avg_promoted()->deviation()); | 1313 gch->gc_stats(1)->avg_promoted()->deviation()); |
1314 } | 1314 } |
1315 | 1315 |
1316 gclog_or_tty->print( " avg_promoted_padded_avg: %f" | 1316 gclog_or_tty->print( " avg_promoted_padded_avg: %f" |
1317 " avg_pretenured_padded_avg: %f" | 1317 " avg_pretenured_padded_avg: %f" |
1318 " tenuring_thresh: %d" | 1318 " tenuring_thresh: %u" |
1319 " target_size: " SIZE_FORMAT | 1319 " target_size: " SIZE_FORMAT |
1320 " survivor_limit: " SIZE_FORMAT, | 1320 " survivor_limit: " SIZE_FORMAT, |
1321 gch->gc_stats(1)->avg_promoted()->padded_average(), | 1321 gch->gc_stats(1)->avg_promoted()->padded_average(), |
1322 _avg_pretenured->padded_average(), | 1322 _avg_pretenured->padded_average(), |
1323 tenuring_threshold, target_size, survivor_limit); | 1323 tenuring_threshold, target_size, survivor_limit); |