< prev index next >

src/java.base/share/classes/java/lang/ThreadGroup.java

Print this page

        

*** 61,74 **** boolean destroyed; boolean daemon; int nUnstartedThreads = 0; int nthreads; ! Thread threads[]; int ngroups; ! ThreadGroup groups[]; /** * Creates an empty Thread group that is not in any Thread group. * This method is used to create the system Thread group. */ --- 61,74 ---- boolean destroyed; boolean daemon; int nUnstartedThreads = 0; int nthreads; ! Thread[] threads; int ngroups; ! ThreadGroup[] groups; /** * Creates an empty Thread group that is not in any Thread group. * This method is used to create the system Thread group. */
*** 375,385 **** * if {@linkplain #checkAccess checkAccess} determines that * the current thread cannot access this thread group * * @since 1.0 */ ! public int enumerate(Thread list[]) { checkAccess(); return enumerate(list, 0, true); } /** --- 375,385 ---- * if {@linkplain #checkAccess checkAccess} determines that * the current thread cannot access this thread group * * @since 1.0 */ ! public int enumerate(Thread[] list) { checkAccess(); return enumerate(list, 0, true); } /**
*** 413,428 **** * if {@linkplain #checkAccess checkAccess} determines that * the current thread cannot access this thread group * * @since 1.0 */ ! public int enumerate(Thread list[], boolean recurse) { checkAccess(); return enumerate(list, 0, recurse); } ! private int enumerate(Thread list[], int n, boolean recurse) { int ngroupsSnapshot = 0; ThreadGroup[] groupsSnapshot = null; synchronized (this) { if (destroyed) { return 0; --- 413,428 ---- * if {@linkplain #checkAccess checkAccess} determines that * the current thread cannot access this thread group * * @since 1.0 */ ! public int enumerate(Thread[] list, boolean recurse) { checkAccess(); return enumerate(list, 0, recurse); } ! private int enumerate(Thread[] list, int n, boolean recurse) { int ngroupsSnapshot = 0; ThreadGroup[] groupsSnapshot = null; synchronized (this) { if (destroyed) { return 0;
*** 509,519 **** * if {@linkplain #checkAccess checkAccess} determines that * the current thread cannot access this thread group * * @since 1.0 */ ! public int enumerate(ThreadGroup list[]) { checkAccess(); return enumerate(list, 0, true); } /** --- 509,519 ---- * if {@linkplain #checkAccess checkAccess} determines that * the current thread cannot access this thread group * * @since 1.0 */ ! public int enumerate(ThreadGroup[] list) { checkAccess(); return enumerate(list, 0, true); } /**
*** 547,562 **** * if {@linkplain #checkAccess checkAccess} determines that * the current thread cannot access this thread group * * @since 1.0 */ ! public int enumerate(ThreadGroup list[], boolean recurse) { checkAccess(); return enumerate(list, 0, recurse); } ! private int enumerate(ThreadGroup list[], int n, boolean recurse) { int ngroupsSnapshot = 0; ThreadGroup[] groupsSnapshot = null; synchronized (this) { if (destroyed) { return 0; --- 547,562 ---- * if {@linkplain #checkAccess checkAccess} determines that * the current thread cannot access this thread group * * @since 1.0 */ ! public int enumerate(ThreadGroup[] list, boolean recurse) { checkAccess(); return enumerate(list, 0, recurse); } ! private int enumerate(ThreadGroup[] list, int n, boolean recurse) { int ngroupsSnapshot = 0; ThreadGroup[] groupsSnapshot = null; synchronized (this) { if (destroyed) { return 0;
< prev index next >