Package javax.tools.diagnostics.runtime.java

Examples of javax.tools.diagnostics.runtime.java.JavaReference


   
    // Find all JavaObject heaproots that have our test thread as a source
    // Remove their class names from our set of expected names.
    Iterator rootIterator = getJavaRuntime().getHeapRoots().iterator();
    while(rootIterator.hasNext()) {
      JavaReference reference = (JavaReference) rootIterator.next();
     
      if (thread.equals(reference.getSource())) {
        if(reference.getTarget() instanceof JavaObject) {
          JavaObject target = (JavaObject) reference.getTarget();
          roots.remove(target.getJavaClass().getName());
        }
      }

    }
View Full Code Here

TOP

Related Classes of javax.tools.diagnostics.runtime.java.JavaReference

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.