RFR: 8253779: Amalloc may be wasting space by overaligning [v2]

Coleen Phillimore coleenp at openjdk.java.net
Fri Jul 9 14:13:57 UTC 2021


On Fri, 9 Jul 2021 03:52:59 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:

>> src/hotspot/share/memory/arena.hpp line 138:
>> 
>>> 136: 
>>> 137:   // Fast allocate in the arena.  Common case aligns to the size of long which is 64 bits
>>> 138:   // on both 32 and 64 bit platforms. Required for atomic long operations on 32 bits.
>> 
>> s/long/jlong/ because C++ long is not 64 bits on some platforms (Windows!).
>
> There were two "long" that need to be "jlong"; only one was changed.

ok, got it.

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

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


More information about the hotspot-dev mailing list