/**
* @see sun.management.ThreadImpl#getThreads()
*/
private static Thread[] getThreads() {
final ArrayList<Thread> tl = new ArrayList<Thread>();
VmUtils.getVm().accept(new VmThreadVisitor() {
@Override
public boolean visit(VmThread thread) {
tl.add(thread.asThread());
return true;
}