8303863: RISC-V: TestArrayStructs.java fails after JDK-8303604

Reviewed-by: jvernee, fyang
This commit is contained in:
Feilong Jiang 2023-03-11 04:48:06 +00:00 committed by Fei Yang
parent 0a4d54f7ce
commit 98a7a60fcb

View File

@ -305,7 +305,7 @@ public class LinuxRISCV64CallArranger {
if (offset + copy < layout.byteSize()) {
bindings.dup();
}
bindings.bufferLoad(offset, type)
bindings.bufferLoad(offset, type, (int) copy)
.vmStore(storage, type);
offset += copy;
}
@ -415,7 +415,7 @@ public class LinuxRISCV64CallArranger {
VMStorage storage = locations[locIndex++];
Class<?> type = SharedUtils.primitiveCarrierForSize(copy, false);
bindings.dup().vmLoad(storage, type)
.bufferStore(offset, type);
.bufferStore(offset, type, (int) copy);
offset += copy;
}
}