equal
deleted
inserted
replaced
994 bool is_survivor_overflow, |
994 bool is_survivor_overflow, |
995 uint tenuring_threshold, |
995 uint tenuring_threshold, |
996 size_t survivor_limit) { |
996 size_t survivor_limit) { |
997 assert(survivor_limit >= _space_alignment, |
997 assert(survivor_limit >= _space_alignment, |
998 "survivor_limit too small"); |
998 "survivor_limit too small"); |
999 assert((size_t)align_size_down(survivor_limit, _space_alignment) |
999 assert(is_size_aligned(survivor_limit, _space_alignment), |
1000 == survivor_limit, "survivor_limit not aligned"); |
1000 "survivor_limit not aligned"); |
1001 |
1001 |
1002 // This method is called even if the tenuring threshold and survivor |
1002 // This method is called even if the tenuring threshold and survivor |
1003 // spaces are not adjusted so that the averages are sampled above. |
1003 // spaces are not adjusted so that the averages are sampled above. |
1004 if (!UsePSAdaptiveSurvivorSizePolicy || |
1004 if (!UsePSAdaptiveSurvivorSizePolicy || |
1005 !young_gen_policy_is_ready()) { |
1005 !young_gen_policy_is_ready()) { |