Growing jextract
Maurizio Cimadamore
maurizio.cimadamore at oracle.com
Mon Feb 19 10:26:14 UTC 2024
Alignment constraints, if set correctly, prevent mistakes such as
storing a struct whose alignment is 16 bytes into a memory segment
address which is only 4-byte aligned. This can result in loss of
performance, or loss of atomic operations (when using var handles), and
might even have bad repercussions on FFI (as the ABI specifies certain
alignment constraints for data it expects native compilers to adhere to).
Maurizio
On 18/02/2024 16:56, Manuel Bleichenbacher wrote:
> What is a real-world use case where a developer would profit from the
> alignment constraints?
More information about the jextract-dev
mailing list