RFR: 8270179: Rename Amalloc_4

Kim Barrett kbarrett at openjdk.java.net
Mon Jul 12 08:17:51 UTC 2021


On Mon, 12 Jul 2021 06:10:18 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:

> Consider this sequence, on 32bit:
> 
>     1. AmallocWords(4) -> _hwm = 4
> 
>     2. Amalloc(8) -> will return a pointer to offset 4, so not 64bit aligned.

I thought that's what ARENA_ALIGN at the beginning of Amalloc was for.  But you are right, there's nothing to align `_hwm`.  This looks like a pre-existing bug, and I wonder how this ever worked on 32bit platforms.

-------------

PR: https://git.openjdk.java.net/jdk/pull/4750


More information about the hotspot-dev mailing list