mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-16 17:14:41 +02:00
8151413: os::allocation_granularity/page_size and friends return signed values
Reviewed-by: stefank, ccheung, ysr
This commit is contained in:
parent
09b8a19597
commit
4fe99da74f
66 changed files with 165 additions and 163 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue