--- old/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/oops/InstanceKlass.java 2017-07-21 13:40:21.078656554 -0400 +++ new/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/oops/InstanceKlass.java 2017-07-21 13:40:20.712362392 -0400 @@ -91,7 +91,6 @@ fields = type.getAddressField("_fields"); javaFieldsCount = new CIntField(type.getCIntegerField("_java_fields_count"), 0); constants = new MetadataField(type.getAddressField("_constants"), 0); - classLoaderData = type.getAddressField("_class_loader_data"); sourceDebugExtension = type.getAddressField("_source_debug_extension"); innerClasses = type.getAddressField("_inner_classes"); sourceFileNameIndex = new CIntField(type.getCIntegerField("_source_file_name_index"), 0); @@ -166,7 +165,6 @@ private static AddressField fields; private static CIntField javaFieldsCount; private static MetadataField constants; - private static AddressField classLoaderData; private static AddressField sourceDebugExtension; private static AddressField innerClasses; private static CIntField sourceFileNameIndex; @@ -328,7 +326,7 @@ // MetaspaceObj in the CDS shared archive. Dictionary sharedDictionary = vm.getSystemDictionary().sharedDictionary(); if (sharedDictionary != null) { - if (sharedDictionary.contains(this, null)) { + if (sharedDictionary.contains(this)) { return true; } } @@ -448,8 +446,6 @@ return allFieldsCount; } public ConstantPool getConstants() { return (ConstantPool) constants.getValue(this); } - public ClassLoaderData getClassLoaderData() { return ClassLoaderData.instantiateWrapperFor(classLoaderData.getValue(getAddress())); } - public Oop getClassLoader() { return getClassLoaderData().getClassLoader(); } public Symbol getSourceFileName() { return getConstants().getSymbolAt(sourceFileNameIndex.getValue(this)); } public String getSourceDebugExtension(){ return CStringUtilities.getString(sourceDebugExtension.getValue(getAddress())); } public long getNonstaticFieldSize() { return nonstaticFieldSize.getValue(this); }