[foreign-memaccess+abi] RFR: 8315769: Add support for sliced allocation [v2]
Maurizio Cimadamore
mcimadamore at openjdk.org
Wed Sep 6 17:50:57 UTC 2023
On Wed, 6 Sep 2023 17:28:55 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:
> > No, if we do not propagate the original layout, some of the alignment checks are going to be missing.
>
> I don't get this. I'm not saying we don't propagate the original layout, I'm just saying that the source layout should be `JAVA_BYTE` here.
>
> The alignment checks of the destination layout only apply to the destination segment, right? Or are you saying that if the destination layout is hyper-aligned (> 1 byte), we should fail because the byte[] elements are only guaranteed to be aligned to 1 byte?
I believe I just misinterpreted what you were saying - as I made essentially the same point below :-)
-------------
PR Review Comment: https://git.openjdk.org/panama-foreign/pull/878#discussion_r1317635714
More information about the panama-dev
mailing list