RFR: 8346923: MetaspaceShared base calculation may cause overflow in align_up
Matias Saavedra Silva
matsaave at openjdk.org
Mon Jan 27 20:11:47 UTC 2025
On Fri, 17 Jan 2025 00:48:14 GMT, Calvin Cheung <ccheung at openjdk.org> wrote:
> This fix adds overflow detection in `MetaspaceShared::compute_shared_base` before calling `align_up`. It is needed in order to work with the proposed changes for [JDK-8318127](https://bugs.openjdk.org/browse/JDK-8318127) which will add an `assert` to check for overflow.
>
> Passed tiers 1 - 4 testing.
LGTM!
-------------
Marked as reviewed by matsaave (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/23168#pullrequestreview-2576448220
More information about the hotspot-runtime-dev
mailing list