Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/hotspot/share/memory/metaspace/runningCounters.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2020 SAP SE. All rights reserved.
* Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2020, 2024 SAP SE. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -45,7 +45,8 @@ size_t RunningCounters::reserved_words_class() {
}

size_t RunningCounters::reserved_words_nonclass() {
return VirtualSpaceList::vslist_nonclass()->reserved_words();
VirtualSpaceList* vs = VirtualSpaceList::vslist_nonclass();
return vs != nullptr ? vs->reserved_words() : 0;
}

// Return total committed size, in words, for Metaspace
Expand Down