8151413: os::allocation_granularity/page_size and friends return signed values

Reviewed-by: stefank, ccheung, ysr
This commit is contained in:
Afshin Zafari 2023-02-07 14:08:01 +00:00 committed by Jesper Wilhelmsson
parent 09b8a19597
commit 4fe99da74f
66 changed files with 165 additions and 163 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015, 2023, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -44,7 +44,7 @@ JVMFlag::Error ObjectAlignmentInBytesConstraintFunc(int value, bool verbose) {
if (value >= (intx)os::vm_page_size()) {
JVMFlag::printError(verbose,
"ObjectAlignmentInBytes (%d) must be "
"less than page size (%d)\n",
"less than page size (" SIZE_FORMAT ")\n",
value, os::vm_page_size());
return JVMFlag::VIOLATES_CONSTRAINT;
}