Integrated: 8346572: Check is_reserved() before using ReservedSpace instances
Stefan Karlsson
stefank at openjdk.org
Fri Jan 24 09:26:55 UTC 2025
On Thu, 19 Dec 2024 09:35:33 GMT, Stefan Karlsson <stefank at openjdk.org> wrote:
> There are a number of places where we reserve memory and create a ReservedSpace, and after the use the created instance without checking if the memory actually got reserved and the instance got initialized. This mostly affects code paths during JVM initialization and fixing this will mostly give better error handling and tracing.
>
> The patch also includes some minor restructuring to get early returns and remove redundant null checks after calls to new.
>
> Tested tier1 and GHA, but will run more tests when/if this gets accepted.
This pull request has now been integrated.
Changeset: 0df9dcb6
Author: Stefan Karlsson <stefank at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/0df9dcb6aa7c31511ca3137da246962faca818a3
Stats: 117 lines in 10 files changed: 47 ins; 31 del; 39 mod
8346572: Check is_reserved() before using ReservedSpace instances
Reviewed-by: tschatzl, wkemper, ayang, ysr
-------------
PR: https://git.openjdk.org/jdk/pull/22825
More information about the hotspot-gc-dev
mailing list