RFR: JDK-8270308: Amalloc aligns size but not return value (take 2) [v5]

Thomas Stuefe stuefe at openjdk.java.net
Mon Jul 26 17:11:37 UTC 2021


On Mon, 26 Jul 2021 13:12:26 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

>> Thomas Stuefe has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Fix Arena::grow for misaligned large grow sizes
>
> src/hotspot/share/memory/arena.hpp line 55:
> 
>> 53:     // default sizes; make them slightly smaller than 2**k to guard against
>> 54:     // buddy-system style malloc implementations
>> 55:     // Note: please keep these constants 64-bit aligned.
> 
> Can you add a static_assert(is_aligned(slack, ARENA_ALIGNMENT)?

Sure!

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

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


More information about the hotspot-dev mailing list