< prev index next >

src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/CommandProcessor.java

Print this page

        

*** 46,55 **** --- 46,56 ---- import sun.jvm.hotspot.code.CodeBlob; import sun.jvm.hotspot.code.CodeCacheVisitor; import sun.jvm.hotspot.code.NMethod; import sun.jvm.hotspot.debugger.Address; import sun.jvm.hotspot.debugger.OopHandle; + import sun.jvm.hotspot.classfile.ClassLoaderDataGraph; import sun.jvm.hotspot.memory.SymbolTable; import sun.jvm.hotspot.memory.SystemDictionary; import sun.jvm.hotspot.memory.Universe; import sun.jvm.hotspot.oops.DefaultHeapVisitor; import sun.jvm.hotspot.oops.HeapVisitor;
*** 851,862 **** if (t.countTokens() != 1) { usage(); } else { String s = t.nextToken(); if (s.equals("-a")) { ! SystemDictionary sysDict = VM.getVM().getSystemDictionary(); ! sysDict.allClassesDo(new SystemDictionary.ClassVisitor() { public void visit(Klass k) { if (k instanceof InstanceKlass) { MethodArray methods = ((InstanceKlass)k).getMethods(); for (int i = 0; i < methods.length(); i++) { Method m = methods.at(i); --- 852,863 ---- if (t.countTokens() != 1) { usage(); } else { String s = t.nextToken(); if (s.equals("-a")) { ! ClassLoaderDataGraph cldg = VM.getVM().getClassLoaderDataGraph(); ! cldg.classesDo(new ClassLoaderDataGraph.ClassVisitor() { public void visit(Klass k) { if (k instanceof InstanceKlass) { MethodArray methods = ((InstanceKlass)k).getMethods(); for (int i = 0; i < methods.length(); i++) { Method m = methods.at(i);
*** 885,896 **** // Print every MDO in the heap or the one referenced by expression. public void doit(Tokens t) { if (t.countTokens() != 0) { usage(); } else { ! SystemDictionary sysDict = VM.getVM().getSystemDictionary(); ! sysDict.allClassesDo(new SystemDictionary.ClassVisitor() { public void visit(Klass k) { if (k instanceof InstanceKlass && ((InstanceKlass)k).getConstants().getCache() != null) { MethodArray methods = ((InstanceKlass)k).getMethods(); for (int i = 0; i < methods.length(); i++) { Method m = methods.at(i); --- 886,897 ---- // Print every MDO in the heap or the one referenced by expression. public void doit(Tokens t) { if (t.countTokens() != 0) { usage(); } else { ! ClassLoaderDataGraph cldg = VM.getVM().getClassLoaderDataGraph(); ! cldg.classesDo(new ClassLoaderDataGraph.ClassVisitor() { public void visit(Klass k) { if (k instanceof InstanceKlass && ((InstanceKlass)k).getConstants().getCache() != null) { MethodArray methods = ((InstanceKlass)k).getMethods(); for (int i = 0; i < methods.length(); i++) { Method m = methods.at(i);
< prev index next >