Search in sources :

Example 1 with RootScanner

use of com.ibm.j9ddr.vm29.j9.RootScanner in project openj9 by eclipse.

the class DTFJJavaRuntime method scanReferences.

private void scanReferences() {
    references = new LinkedList<Object>();
    AddCorruptionToListListener corruptionListener = new AddCorruptionToListListener(references);
    register(corruptionListener);
    try {
        RootScanner scanner = new DTFJRootScanner();
        /* We don't report stack slots here */
        scanner.setScanStackSlots(false);
        scanner.scanAllSlots();
    } catch (Throwable t) {
        CorruptData cd = J9DDRDTFJUtils.handleAsCorruptData(DTFJContext.getProcess(), t);
        references.add(cd);
    }
    unregister(corruptionListener);
}
Also used : RootScanner(com.ibm.j9ddr.vm29.j9.RootScanner) JavaObject(com.ibm.dtfj.java.JavaObject) CorruptData(com.ibm.dtfj.image.CorruptData) J9DDRCorruptData(com.ibm.j9ddr.view.dtfj.image.J9DDRCorruptData) AddCorruptionToListListener(com.ibm.j9ddr.vm29.view.dtfj.java.corrupt.AddCorruptionToListListener)

Aggregations

CorruptData (com.ibm.dtfj.image.CorruptData)1 JavaObject (com.ibm.dtfj.java.JavaObject)1 J9DDRCorruptData (com.ibm.j9ddr.view.dtfj.image.J9DDRCorruptData)1 RootScanner (com.ibm.j9ddr.vm29.j9.RootScanner)1 AddCorruptionToListListener (com.ibm.j9ddr.vm29.view.dtfj.java.corrupt.AddCorruptionToListListener)1