Mercurial > hg > truffle
comparison src/share/vm/gc_implementation/parallelScavenge/psAdaptiveSizePolicy.hpp @ 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 |
---|---|
351 GCCause::Cause gc_cause, | 351 GCCause::Cause gc_cause, |
352 CollectorPolicy* collector_policy); | 352 CollectorPolicy* collector_policy); |
353 | 353 |
354 // Calculates new survivor space size; returns a new tenuring threshold | 354 // Calculates new survivor space size; returns a new tenuring threshold |
355 // value. Stores new survivor size in _survivor_size. | 355 // value. Stores new survivor size in _survivor_size. |
356 int compute_survivor_space_size_and_threshold(bool is_survivor_overflow, | 356 uint compute_survivor_space_size_and_threshold(bool is_survivor_overflow, |
357 int tenuring_threshold, | 357 uint tenuring_threshold, |
358 size_t survivor_limit); | 358 size_t survivor_limit); |
359 | 359 |
360 // Return the maximum size of a survivor space if the young generation were of | 360 // Return the maximum size of a survivor space if the young generation were of |
361 // size gen_size. | 361 // size gen_size. |
362 size_t max_survivor_size(size_t gen_size) { | 362 size_t max_survivor_size(size_t gen_size) { |
363 // Never allow the target survivor size to grow more than MinSurvivorRatio | 363 // Never allow the target survivor size to grow more than MinSurvivorRatio |