RFR: 8339242: Fix overflow issues in AdlArena [v5]

duke duke at openjdk.org
Wed Sep 11 08:44:06 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

@caspernorrbin 
Your change (at version 41804e2e93cac96e5773ca7db91dcc8dc7a535d2) is now ready to be sponsored by a Committer.

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

PR Comment: https://git.openjdk.org/jdk/pull/20774#issuecomment-2343018604


More information about the hotspot-compiler-dev mailing list