Mercurial > hg > truffle
comparison src/share/vm/gc_implementation/parallelScavenge/psAdaptiveSizePolicy.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 | da91efe96a93 |
children | eba99d16dc6f |
comparison
equal
deleted
inserted
replaced
6817:f81a7c0c618d | 6818:22b8d3d181d9 |
---|---|
939 size_t promo_heap_delta = promo_increment(cur_promo); | 939 size_t promo_heap_delta = promo_increment(cur_promo); |
940 promo_heap_delta = promo_heap_delta / AdaptiveSizeDecrementScaleFactor; | 940 promo_heap_delta = promo_heap_delta / AdaptiveSizeDecrementScaleFactor; |
941 return promo_heap_delta; | 941 return promo_heap_delta; |
942 } | 942 } |
943 | 943 |
944 int PSAdaptiveSizePolicy::compute_survivor_space_size_and_threshold( | 944 uint PSAdaptiveSizePolicy::compute_survivor_space_size_and_threshold( |
945 bool is_survivor_overflow, | 945 bool is_survivor_overflow, |
946 int tenuring_threshold, | 946 uint tenuring_threshold, |
947 size_t survivor_limit) { | 947 size_t survivor_limit) { |
948 assert(survivor_limit >= _intra_generation_alignment, | 948 assert(survivor_limit >= _intra_generation_alignment, |
949 "survivor_limit too small"); | 949 "survivor_limit too small"); |
950 assert((size_t)align_size_down(survivor_limit, _intra_generation_alignment) | 950 assert((size_t)align_size_down(survivor_limit, _intra_generation_alignment) |
951 == survivor_limit, "survivor_limit not aligned"); | 951 == survivor_limit, "survivor_limit not aligned"); |