RFR: 8339242: Fix overflow issues in AdlArena [v5]
Casper Norrbin
duke at openjdk.org
Fri Sep 6 08:52:07 UTC 2024
> 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
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/20774/files
- new: https://git.openjdk.org/jdk/pull/20774/files/aec249fa..41804e2e
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=20774&range=04
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=20774&range=03-04
Stats: 2 lines in 1 file changed: 1 ins; 0 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/20774.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/20774/head:pull/20774
PR: https://git.openjdk.org/jdk/pull/20774
More information about the hotspot-compiler-dev
mailing list