RFR: 8371637: allocateNativeInternal sometimes return incorrectly aligned memory [v6]
Almaz
duke at openjdk.org
Thu Nov 20 18:44:46 UTC 2025
On Thu, 20 Nov 2025 17:30:20 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
> Note that WG14 still defines a max alignment:
> > max_align_t
Can `MAX_MALLOC_ALIGN` be set to `alignof(max_align_t)`?
> It's in the fact that libc guarantees that all malloc calls will be aligned to that max alignment whereas WG14 does not (unless when you hold it at a certain angle ;-) )
I think this comes back to https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2293.htm.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/28235#issuecomment-3559516639
More information about the core-libs-dev
mailing list