< prev index next >

src/jdk.jdi/share/classes/com/sun/jdi/ThreadGroupReference.java

Print this page
*** 1,7 ***
  /*
!  * Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.
   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   *
   * This code is free software; you can redistribute it and/or modify it
   * under the terms of the GNU General Public License version 2 only, as
   * published by the Free Software Foundation.  Oracle designates this
--- 1,7 ---
  /*
!  * Copyright (c) 1998, 2021, Oracle and/or its affiliates. All rights reserved.
   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   *
   * This code is free software; you can redistribute it and/or modify it
   * under the terms of the GNU General Public License version 2 only, as
   * published by the Free Software Foundation.  Oracle designates this

*** 77,25 ***
       */
      void resume();
  
      /**
       * Returns a List containing a {@link ThreadReference} for each live thread
!      * in this thread group. Only the live threads in this immediate thread group
!      * (and not its subgroups) are returned.  A thread is alive if it
!      * has been started and has not yet been stopped.
       *
       * @return a List of {@link ThreadReference} objects mirroring the
       * live threads from this thread group in the target VM.
       */
      List<ThreadReference> threads();
  
      /**
!      * Returns a List containing each active {@link ThreadGroupReference} in this
!      * thread group. Only the active thread groups in this immediate thread group
!      * (and not its subgroups) are returned.
!      * See {@link java.lang.ThreadGroup}
-      * for information about 'active' ThreadGroups.
       * @return a List of {@link ThreadGroupReference} objects mirroring the
!      * active thread groups from this thread group in the target VM.
       */
      List<ThreadGroupReference> threadGroups();
  }
--- 77,25 ---
       */
      void resume();
  
      /**
       * Returns a List containing a {@link ThreadReference} for each live thread
!      * in this thread group. Virtual threads are not considered live threads in
!      * a thread group and are not included. Only the live threads in this
!      * immediate thread group (and not its subgroups) are returned. A thread is
+      * alive if it has been started and has not yet been stopped.
       *
       * @return a List of {@link ThreadReference} objects mirroring the
       * live threads from this thread group in the target VM.
       */
      List<ThreadReference> threads();
  
      /**
!      * Returns a List containing a {@link ThreadGroupReference} for each
!      * subgroup. Only the thread groups in this immediate thread group (and
!      * not its subgroups) are returned.
!      *
       * @return a List of {@link ThreadGroupReference} objects mirroring the
!      * thread groups from this thread group in the target VM.
       */
      List<ThreadGroupReference> threadGroups();
  }
< prev index next >