Integrated: 8339242: Fix overflow issues in AdlArena

Casper Norrbin duke at openjdk.org
Wed Sep 11 08:49:13 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.

This pull request has now been integrated.

Changeset: 0b3f2e64
Author:    Casper Norrbin <casper.norrbin at oracle.com>
Committer: Johan Sjölen <jsjolen at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/0b3f2e64e83b589115989f9d14a6c644bc3008aa
Stats:     48 lines in 3 files changed: 21 ins; 14 del; 13 mod

8339242: Fix overflow issues in AdlArena

Reviewed-by: jsjolen, kbarrett

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

PR: https://git.openjdk.org/jdk/pull/20774


More information about the hotspot-compiler-dev mailing list