mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +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
|
@ -607,7 +607,7 @@ Flag::Error GCPauseIntervalMillisConstraintFunc(uintx value, bool verbose) {
|
|||
}
|
||||
|
||||
Flag::Error InitialBootClassLoaderMetaspaceSizeConstraintFunc(size_t value, bool verbose) {
|
||||
size_t aligned_max = (size_t)align_size_down(max_uintx/2, Metaspace::reserve_alignment_words());
|
||||
size_t aligned_max = align_size_down(max_uintx/2, Metaspace::reserve_alignment_words());
|
||||
if (value > aligned_max) {
|
||||
CommandLineError::print(verbose,
|
||||
"InitialBootClassLoaderMetaspaceSize (" SIZE_FORMAT ") must be "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue