8308992: New test TestHFA fails with zero

Reviewed-by: mcimadamore
This commit is contained in:
Jorn Vernee 2023-05-30 15:28:40 +00:00
parent fb0b1f0c23
commit 804f198c73

View file

@ -244,7 +244,7 @@ public final class FallbackLinker extends AbstractLinker {
acquireCallback.accept(addrArg);
argSeg.set(al, 0, addrArg);
} else if (layout instanceof GroupLayout) {
argSeg.copyFrom((MemorySegment) arg); // by-value struct
MemorySegment.copy((MemorySegment) arg, 0, argSeg, 0, argSeg.byteSize()); // by-value struct
} else {
assert layout == null;
}