mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-16 17:14:41 +02:00
8313564: Fix -Wconversion warnings in classfile code
Reviewed-by: matsaave, dholmes
This commit is contained in:
parent
e8a37b90db
commit
f66cd5008d
19 changed files with 57 additions and 52 deletions
|
@ -53,10 +53,10 @@ JVMFlag::Error ObjectAlignmentInBytesConstraintFunc(int value, bool verbose) {
|
|||
|
||||
// Need to enforce the padding not to break the existing field alignments.
|
||||
// It is sufficient to check against the largest type size.
|
||||
JVMFlag::Error ContendedPaddingWidthConstraintFunc(intx value, bool verbose) {
|
||||
JVMFlag::Error ContendedPaddingWidthConstraintFunc(int value, bool verbose) {
|
||||
if ((value % BytesPerLong) != 0) {
|
||||
JVMFlag::printError(verbose,
|
||||
"ContendedPaddingWidth (" INTX_FORMAT ") must be "
|
||||
"ContendedPaddingWidth (%d) must be "
|
||||
"a multiple of %d\n",
|
||||
value, BytesPerLong);
|
||||
return JVMFlag::VIOLATES_CONSTRAINT;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue