RFR: 8339242: Fix overflow issues in AdlArena [v5]
Casper Norrbin
duke at openjdk.org
Wed Sep 11 08:44:05 UTC 2024
On Fri, 6 Sep 2024 08:52:07 GMT, Casper Norrbin <duke at openjdk.org> wrote:
>> Hi everyone,
>>
>> This PR addresses an issue in `adlArena` where some allocations lack checks for overflow. This could potentially result in successful allocations when called with unrealistic values.
>>
>> The fix includes:
>>
>> - Adding assertions to check for potential overflow.
>> - Reordering some operations to guard against overflow.
>
> Casper Norrbin has updated the pull request incrementally with one additional commit since the last revision:
>
> assert + static pointer_delta fun
Thank you everyone for the discussion and the reviews.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/20774#issuecomment-2343018081
More information about the hotspot-compiler-dev
mailing list