Search in sources :

Example 1 with JCCorruptData

use of com.ibm.dtfj.image.javacore.JCCorruptData in project openj9 by eclipse.

the class JCJavaMonitor method getThreads.

/**
 * @param threadIDs
 */
private Iterator getThreads(Vector threadIDs) {
    Vector threads = new Vector();
    Iterator it = threadIDs.iterator();
    while (it.hasNext()) {
        ImagePointer pointer = (ImagePointer) it.next();
        JCJavaThread waitingThread = fRuntime.findJavaThread(pointer.getAddress());
        if (waitingThread != null) {
            threads.add(waitingThread);
        } else {
            threads.add(new JCCorruptData("Unknown thread", pointer));
        }
    }
    return threads.iterator();
}
Also used : ImagePointer(com.ibm.dtfj.image.ImagePointer) JCCorruptData(com.ibm.dtfj.image.javacore.JCCorruptData) Iterator(java.util.Iterator) Vector(java.util.Vector)

Aggregations

ImagePointer (com.ibm.dtfj.image.ImagePointer)1 JCCorruptData (com.ibm.dtfj.image.javacore.JCCorruptData)1 Iterator (java.util.Iterator)1 Vector (java.util.Vector)1