Integrated: 8346923: MetaspaceShared base calculation may cause overflow in align_up

Calvin Cheung ccheung at openjdk.org
Mon Jan 27 22:44:50 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.

This pull request has now been integrated.

Changeset: 1916a777
Author:    Calvin Cheung <ccheung at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/1916a7773f2083096e18b92d71d384453652c07d
Stats:     47 lines in 1 file changed: 35 ins; 2 del; 10 mod

8346923: MetaspaceShared base calculation may cause overflow in align_up

Reviewed-by: iklam, matsaave

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

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


More information about the hotspot-runtime-dev mailing list