RFR: 8339242: Fix overflow issues in AdlArena
Johan Sjölen
jsjolen at openjdk.org
Mon Sep 2 08:23:19 UTC 2024
On Thu, 29 Aug 2024 15:07:46 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.
LGTM
-------------
Marked as reviewed by jsjolen (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/20774#pullrequestreview-2274989449
More information about the hotspot-compiler-dev
mailing list