RFR: 8371637: allocateNativeInternal sometimes return incorrectly aligned memory
Maurizio Cimadamore
mcimadamore at openjdk.org
Wed Nov 12 11:24:10 UTC 2025
On Wed, 12 Nov 2025 11:19:51 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
> The problem is: how do we discover these constants?
Note: we can't just do a "trial allocation" of 4 bytes and see what comes out -- we might just be "lucky" and see an 8-byte aligned address, even though the underlying allocator is aligning at 4 bytes...
-------------
PR Comment: https://git.openjdk.org/jdk/pull/28235#issuecomment-3521438964
More information about the core-libs-dev
mailing list