Fix counter mismatch after workaround for JDK-8233019 stuefe-new-metaspace-branch
authorstuefe
Fri, 15 Nov 2019 10:11:04 +0100
branchstuefe-new-metaspace-branch
changeset 59107 245a39d9e24d
parent 58948 18659e040c64
child 59134 b67820888eb3
Fix counter mismatch after workaround for JDK-8233019
src/hotspot/share/memory/metaspace/spaceManager.cpp
--- a/src/hotspot/share/memory/metaspace/spaceManager.cpp	Wed Nov 06 17:13:26 2019 +0100
+++ b/src/hotspot/share/memory/metaspace/spaceManager.cpp	Fri Nov 15 10:11:04 2019 +0100
@@ -138,6 +138,7 @@
   {
     bool ignored;
     c->allocate(1, &ignored);
+    _total_used_words_counter->increment();
   }
 
   return c;