RFR: 8371637: allocateNativeInternal sometimes return incorrectly aligned memory [v6]
Maurizio Cimadamore
mcimadamore at openjdk.org
Fri Nov 21 14:53:22 UTC 2025
On Thu, 20 Nov 2025 18:40:57 GMT, Almaz <duke 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.
That would be best, I think, but can also be addressed in a separate PR.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/28235#issuecomment-3563330369
More information about the core-libs-dev
mailing list