Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
8303863: RISC-V: TestArrayStructs.java fails after JDK-8303604
Reviewed-by: jvernee, fyang
  • Loading branch information
feilongjiang authored and RealFYang committed Mar 11, 2023
1 parent 0a4d54f commit 98a7a60
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -305,7 +305,7 @@ List<Binding> getBindings(Class<?> carrier, MemoryLayout layout, TypeClass argum
if (offset + copy < layout.byteSize()) {
bindings.dup();
}
bindings.bufferLoad(offset, type)
bindings.bufferLoad(offset, type, (int) copy)
.vmStore(storage, type);
offset += copy;
}
Expand Down Expand Up @@ -415,7 +415,7 @@ List<Binding> getBindings(Class<?> carrier, MemoryLayout layout, TypeClass argum
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;
}
}
Expand Down

1 comment on commit 98a7a60

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.