public static ThreadGroupReference group() { if (group == null) { // Current thread group defaults to the first top level // thread group. setThreadGroup((ThreadGroupReference) DebugContext.getJVM().topLevelThreadGroups().get(0)); } return group; }
private static void initThreads() { List<ThreadReference> all = DebugContext.getJVM().allThreads(); if (!gotInitialThreads) { for (ThreadReference threadReference : all) { threads.add(new ThreadInfo(threadReference)); } gotInitialThreads = true; } }