src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/memory/Dictionary.java
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File
*** old/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/memory/Dictionary.java Mon Oct 31 17:46:23 2016
--- new/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/memory/Dictionary.java Mon Oct 31 17:46:23 2016
*** 100,105 ****
--- 100,118 ----
return entry;
}
}
return null;
}
+
+ public boolean contains(Klass c, Oop classLoader) {
+ long hash = computeHash(c.getName(), classLoader);
+ int index = hashToIndex(hash);
+
+ for (DictionaryEntry entry = (DictionaryEntry) bucket(index); entry != null;
+ entry = (DictionaryEntry) entry.next()) {
+ if (entry.literalValue().equals(c.getAddress())) {
+ return true;
+ }
+ }
+ return false;
+ }
}
src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/memory/Dictionary.java
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File