// thread id set to null means we want all the threads, and we
// save all orphaned java threads in a list within the hashmap
if ( null == currID) {
if (threads.containsKey(null)) {
ArrayList ta = (ArrayList)threads.get(null);
ta.add(new ThreadData(jt, jr));
} else {
ArrayList ta = new ArrayList(1);
ta.add(new ThreadData(jt, jr));
threads.put(null, ta);
}
} else {
threads.put(currID, new ThreadData(jt, jr));
}
} else if (id.equals(currID)) {
// we just want the specific java thread that matches the native one
threads.put(currID, new ThreadData(jt, jr));
}
}
}
}