hotspot/agent/src/share/classes/sun/jvm/hotspot/utilities/ReversePtrsAnalysis.java
changeset 360 21d113ecbf6a
parent 1 489c9b5090e2
child 670 ddf3e9583f2f
equal deleted inserted replaced
357:f4edb0d9f109 360:21d113ecbf6a
   280                                                                  " @ " + addr));
   280                                                                  " @ " + addr));
   281       rp.put(lp, next);
   281       rp.put(lp, next);
   282       markAndTraverse(next);
   282       markAndTraverse(next);
   283     }
   283     }
   284 
   284 
       
   285     public void visitCompOopAddress(Address addr) {
       
   286       Oop next = heap.newOop(addr.getCompOopHandleAt(0));
       
   287       LivenessPathElement lp = new LivenessPathElement(null,
       
   288                                         new NamedFieldIdentifier(baseRootDescription +
       
   289                                                                  " @ " + addr));
       
   290       rp.put(lp, next);
       
   291       markAndTraverse(next);
       
   292     }
       
   293 
   285     private String baseRootDescription;
   294     private String baseRootDescription;
   286   }
   295   }
   287 
   296 
   288   // Traverse the roots on a given thread's stack
   297   // Traverse the roots on a given thread's stack
   289   private void doStack(JavaThread thread, AddressVisitor oopVisitor) {
   298   private void doStack(JavaThread thread, AddressVisitor oopVisitor) {