RFR: 8341020: Error handler crashes when Metaspace is not fully initialized [v2]

Aleksey Shipilev shade at openjdk.org
Thu Oct 17 14:34:48 UTC 2024


On Thu, 3 Oct 2024 09:30:26 GMT, Johan Sjölen <jsjolen at openjdk.org> wrote:

>> FWIW, we had a similar discussion in #19435.
>
> All of these methods are public. I think that it seems sane to assume that they are the boundary for checking whether Metaspace is initialized before doing something.

All right, I think checking for `Metaspace::initialized()` in `os::print_location` is more in line with other changes, notably [JDK-8333290](https://bugs.openjdk.org/browse/JDK-8333290). This is Kim's suggestion, I think. So I did just that.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/21206#discussion_r1804900725


More information about the hotspot-runtime-dev mailing list