8313564: Fix -Wconversion warnings in classfile code

Reviewed-by: matsaave, dholmes
This commit is contained in:
Coleen Phillimore 2023-08-04 14:06:16 +00:00
parent e8a37b90db
commit f66cd5008d
19 changed files with 57 additions and 52 deletions

View file

@ -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;