RFR: 8345119: Some java/foreign tests wrongly assume aligned memory
Maurizio Cimadamore
mcimadamore at openjdk.org
Wed Nov 27 18:58:37 UTC 2024
On Wed, 27 Nov 2024 16:12:04 GMT, Quan Anh Mai <qamai at openjdk.org> wrote:
> Hi,
>
> This patch resolves some issues I found that the tests wrongly assume sufficient alignment from the segment returned by `Arena::allocate`.
>
> Please take a look and leave your reviews, thanks a lot.
Looks good. Normally, what `Arena::allocate` does is to use `malloc` which will always align to 16 bytes in 64-bit systems, but it's good to make the tests more robust.
Marked as reviewed by mcimadamore (Reviewer).
-------------
PR Review: https://git.openjdk.org/jdk/pull/22415#pullrequestreview-2465774638
PR Review: https://git.openjdk.org/jdk/pull/22415#pullrequestreview-2465774852
More information about the core-libs-dev
mailing list