src/hotspot/share/services/memReporter.cpp
changeset 49980 57dd7b4ba338
parent 49389 9ef2eee8ca7c
child 53685 df83034c9275
--- a/src/hotspot/share/services/memReporter.cpp	Thu May 03 17:36:25 2018 -0700
+++ b/src/hotspot/share/services/memReporter.cpp	Tue Apr 24 18:06:32 2018 +0200
@@ -201,7 +201,7 @@
   size_t used = MetaspaceUtils::used_bytes(type);
   size_t free = (MetaspaceUtils::capacity_bytes(type) - used)
               + MetaspaceUtils::free_chunks_total_bytes(type)
-              + MetaspaceUtils::free_bytes(type);
+              + MetaspaceUtils::free_in_vs_bytes(type);
 
   assert(committed >= used + free, "Sanity");
   size_t waste = committed - (used + free);