RFR: 8332955: ubsan: runningCounters.cpp:48:61: runtime error: member call on null pointer of type 'struct VirtualSpaceList'
David Holmes
dholmes at openjdk.org
Thu May 30 06:34:06 UTC 2024
On Tue, 28 May 2024 18:12:36 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:
> @MBaesken and @dholmes-ora convinced me this needs fixing. Fix is trivial; for details, please see JBS issue.
By strange coincidence we just encountered an assertion failure during VM initalization (https://bugs.openjdk.org/browse/JDK-8332935) that leads to this secondary failure doing the NMT reporting, so I am glad to see it fixed.
But I understand @stefank 's position about the code being well-defined except during this initialization phase, and also wonder where is the "best" place to address this? Doing it in the "leaf" methods is more future-proof in a sense but it also means we open up the possibility of even more code interacting with Metaspace stats before metaspace is initialized, which seems to me to be something we would not want and would perhaps like to detect. So I'm slightly in favour of having the NMT code check if metaspace is initialized before trying to report any metaspace stats if that is feasible.
-------------
PR Review: https://git.openjdk.org/jdk/pull/19435#pullrequestreview-2087344511
More information about the hotspot-runtime-dev
mailing list