Feature requests.
Andrew Haley
aph-open at littlepinkcloud.com
Tue May 20 08:47:49 UTC 2025
On 5/19/25 16:51, Paul Sandoz wrote:
> Note that will not guarantee stable alignment. The GC can move the
> allocated array.
Is it even allowed?
https://download.java.net/java/early_access/jdk25/docs/api/java.base/java/lang/foreign/MemorySegment.html#segment-alignment
"Heap segments can only be accessed using a layout whose alignment is
smaller or equal to the maximum alignment associated with the heap
segment. Attempting to access a heap segment using a layout whose
alignment is greater than the maximum alignment associated with the heap
segment will fail,"
--
Andrew Haley (he/him)
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
https://keybase.io/andrewhaley
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671
More information about the panama-dev
mailing list