mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8178489: Make align functions more type safe and consistent
Reviewed-by: mgerdin, rehn
This commit is contained in:
parent
229f386a8f
commit
0fcf645cff
49 changed files with 134 additions and 140 deletions
|
@ -996,8 +996,8 @@ uint PSAdaptiveSizePolicy::compute_survivor_space_size_and_threshold(
|
|||
size_t survivor_limit) {
|
||||
assert(survivor_limit >= _space_alignment,
|
||||
"survivor_limit too small");
|
||||
assert((size_t)align_size_down(survivor_limit, _space_alignment)
|
||||
== survivor_limit, "survivor_limit not aligned");
|
||||
assert(is_size_aligned(survivor_limit, _space_alignment),
|
||||
"survivor_limit not aligned");
|
||||
|
||||
// This method is called even if the tenuring threshold and survivor
|
||||
// spaces are not adjusted so that the averages are sampled above.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue