< prev index next >

src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/memory/FileMapInfo.java

Print this page
@@ -114,21 +114,23 @@
  
      populateMetadataTypeArray(db);
    }
  
    private static void populateMetadataTypeArray(TypeDataBase db) {
-     metadataTypeArray = new Type[9];
- 
+     metadataTypeArray = new Type[11];
+     // The order needs to match up with CPP_VTABLE_TYPES_DO in src/hotspot/share/cds/cppVtables.cpp
      metadataTypeArray[0] = db.lookupType("ConstantPool");
      metadataTypeArray[1] = db.lookupType("InstanceKlass");
      metadataTypeArray[2] = db.lookupType("InstanceClassLoaderKlass");
      metadataTypeArray[3] = db.lookupType("InstanceMirrorKlass");
      metadataTypeArray[4] = db.lookupType("InstanceRefKlass");
      metadataTypeArray[5] = db.lookupType("InstanceStackChunkKlass");
      metadataTypeArray[6] = db.lookupType("Method");
-     metadataTypeArray[7] = db.lookupType("ObjArrayKlass");
-     metadataTypeArray[8] = db.lookupType("TypeArrayKlass");
+     metadataTypeArray[9] = db.lookupType("MethodData");
+     metadataTypeArray[8] = db.lookupType("MethodCounters");
+     metadataTypeArray[9] = db.lookupType("ObjArrayKlass");
+     metadataTypeArray[10] = db.lookupType("TypeArrayKlass");
    }
  
    public FileMapHeader getHeader() {
      return headerObj;
    }
< prev index next >