Beispiel #1
0
 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;
 }
Beispiel #2
0
  private static void initThreads() {
    List<ThreadReference> all = DebugContext.getJVM().allThreads();

    if (!gotInitialThreads) {
      for (ThreadReference threadReference : all) {
        threads.add(new ThreadInfo(threadReference));
      }
      gotInitialThreads = true;
    }
  }