RFR: 8270179: Rename Amalloc_4
Kim Barrett
kbarrett at openjdk.java.net
Mon Jul 12 09:28:55 UTC 2021
On Mon, 12 Jul 2021 08:23:55 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:
> My guess would be that the only widely relevant 32bit architecture was x86, and they allow unaligned access. I wonder how 32bit arm handles this. Maybe allocating 32bit words of memory is just very rare.
Maybe using a given arena for a mix of operations doesn't happen? If only Amalloc is used for an arena then it will stay 8 byte aligned.
> I honestly always thought Amalloc4 was for allocating 32bits, if you knew 32bit alignment was enough. E.g. for storing ints. But seems I was wrong all along.
That's what I would have guessed too, based on the name. That's why I complained about it.
-------------
PR: https://git.openjdk.java.net/jdk/pull/4750
More information about the hotspot-dev
mailing list