src/hotspot/share/services/virtualMemoryTracker.cpp
branchstuefe-new-metaspace-branch
changeset 59272 54750b448264
parent 58063 bdf136b8ae0e
--- a/src/hotspot/share/services/virtualMemoryTracker.cpp	Tue Nov 26 11:29:20 2019 +0100
+++ b/src/hotspot/share/services/virtualMemoryTracker.cpp	Tue Nov 26 16:21:29 2019 +0100
@@ -602,8 +602,8 @@
 
 // Metaspace Support
 MetaspaceSnapshot::MetaspaceSnapshot() {
-  for (int index = (int)metaspace::ClassType; index < (int)metaspace::MetadataTypeCount; index ++) {
-    metaspace::MetadataType type = (metaspace::MetadataType)index;
+  for (int index = (int)Metaspace::ClassType; index < (int)Metaspace::MetadataTypeCount; index ++) {
+    Metaspace::MetadataType type = (Metaspace::MetadataType)index;
     assert_valid_metadata_type(type);
     _reserved_in_bytes[type]  = 0;
     _committed_in_bytes[type] = 0;
@@ -612,7 +612,7 @@
   }
 }
 
-void MetaspaceSnapshot::snapshot(metaspace::MetadataType type, MetaspaceSnapshot& mss) {
+void MetaspaceSnapshot::snapshot(Metaspace::MetadataType type, MetaspaceSnapshot& mss) {
   assert_valid_metadata_type(type);
 
   mss._reserved_in_bytes[type]   = MetaspaceUtils::reserved_bytes(type);
@@ -626,8 +626,8 @@
 }
 
 void MetaspaceSnapshot::snapshot(MetaspaceSnapshot& mss) {
-  snapshot(metaspace::ClassType, mss);
+  snapshot(Metaspace::ClassType, mss);
   if (Metaspace::using_class_space()) {
-    snapshot(metaspace::NonClassType, mss);
+    snapshot(Metaspace::NonClassType, mss);
   }
 }