Skip to content

Commit 98a7a60

Browse files
feilongjiangRealFYang
authored andcommitted
8303863: RISC-V: TestArrayStructs.java fails after JDK-8303604
Reviewed-by: jvernee, fyang
1 parent 0a4d54f commit 98a7a60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/java.base/share/classes/jdk/internal/foreign/abi/riscv64/linux/LinuxRISCV64CallArranger.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ List<Binding> getBindings(Class<?> carrier, MemoryLayout layout, TypeClass argum
305305
if (offset + copy < layout.byteSize()) {
306306
bindings.dup();
307307
}
308-
bindings.bufferLoad(offset, type)
308+
bindings.bufferLoad(offset, type, (int) copy)
309309
.vmStore(storage, type);
310310
offset += copy;
311311
}
@@ -415,7 +415,7 @@ List<Binding> getBindings(Class<?> carrier, MemoryLayout layout, TypeClass argum
415415
VMStorage storage = locations[locIndex++];
416416
Class<?> type = SharedUtils.primitiveCarrierForSize(copy, false);
417417
bindings.dup().vmLoad(storage, type)
418-
.bufferStore(offset, type);
418+
.bufferStore(offset, type, (int) copy);
419419
offset += copy;
420420
}
421421
}

0 commit comments

Comments
 (0)