Searched refs:activeCount (Results 1 - 22 of 22) sorted by relevance

/openjdk10/corba/src/java.corba/share/classes/com/sun/corba/se/pept/transport/
H A DByteBufferPool.java37 public int activeCount(); method in interface:ByteBufferPool
/openjdk10/jdk/test/java/lang/management/ThreadMXBean/
H A DThreadLists.java51 int activeCount = top.activeCount();
59 System.out.println("ThreadGroup: " + activeCount + " active thread(s)");
66 if (activeCount != stackTraces.size()) failed = true;
67 if (activeCount != threadCount) failed = true;
68 if (activeCount != threadIds.length) failed = true;
/openjdk10/jdk/test/java/lang/Thread/
H A DStartOOMTest.java62 while (tg.activeCount() > i/2)
76 int activeCount = tg.activeCount();
77 System.out.println("activeCount = " + activeCount);
79 if (activeCount > 0) {
H A DMainThreadTest.java33 int n = tg.activeCount();
/openjdk10/jdk/test/java/lang/ThreadGroup/
H A DDaemon.java37 if (tg.activeCount() != 0)
38 throw new RuntimeException("activeCount");
/openjdk10/jdk/test/java/text/Format/DateFormat/
H A DBug4407042.java59 int n = Thread.activeCount();
65 if (Thread.activeCount() != n) {
/openjdk10/jdk/test/java/util/concurrent/ThreadPoolExecutor/
H A DConfigChanges.java59 tg.activeCount(),
171 equal(n, tg.activeCount());
198 equal(3*n, tg.activeCount());
215 equal(4*n, tg.activeCount());
230 spinAwait(() -> tg.activeCount() == 2*n);
237 equal(2*n, tg.activeCount());
249 spinAwait(() -> tg.activeCount() == n);
257 spinAwait(() -> tg.activeCount() == 0);
H A DCustom.java95 Thread[] threads = new Thread[Thread.activeCount()+100];
H A DCoreThreadTimeOut.java57 Thread[] threads = new Thread[Thread.activeCount()+100];
H A DThrowingTasks.java215 //System.out.println(tg.activeCount());
255 //System.out.printf("thread count = %d%n", tg.activeCount());
258 spinAwait(() -> tg.activeCount() == tpe.getCorePoolSize());
265 //while (tg.activeCount() > 0) Thread.sleep(10);
/openjdk10/jdk/test/com/sun/jdi/
H A DDebuggerThreadTest.java75 int listThreads = tg.activeCount();
/openjdk10/jdk/test/java/io/PipedInputStream/
H A DWriterLoop.java75 Thread[] threads = new Thread[Thread.activeCount()];
/openjdk10/jdk/test/java/lang/ref/
H A DOOMEInReferenceHandler.java68 Thread[] threads = new Thread[tg.activeCount()];
H A DNullQueue.java44 int nt = tg.activeCount();
/openjdk10/corba/src/java.corba/share/classes/com/sun/corba/se/impl/transport/
H A DByteBufferPoolImpl.java201 public int activeCount() method in class:ByteBufferPoolImpl
/openjdk10/jdk/test/sun/net/www/http/KeepAliveCache/
H A DKeepAliveTimerThread.java119 if (grp.activeCount() > 0) {
/openjdk10/jdk/test/javax/swing/JColorChooser/
H A DTest4177735.java98 Thread[] threads = new Thread[group.activeCount()];
/openjdk10/langtools/src/jdk.jshell/share/classes/jdk/jshell/execution/
H A DLocalExecutionControl.java103 Thread[] threadList = new Thread[execThreadGroup.activeCount()];
/openjdk10/corba/src/java.corba/share/classes/com/sun/corba/se/impl/orbutil/threadpool/
H A DThreadPoolManagerImpl.java122 int numThreads = threadGroup.activeCount();
/openjdk10/jdk/src/java.desktop/share/classes/sun/awt/
H A DAppContext.java521 while ((this.threadGroup.activeCount() > 0) &&
539 while ((this.threadGroup.activeCount() > 0) &&
/openjdk10/jdk/src/java.base/share/classes/java/lang/
H A DThreadGroup.java334 public int activeCount() { method in class:ThreadGroup
353 result += groupsSnapshot[i].activeCount();
393 * <p> An application might use the {@linkplain #activeCount activeCount}
H A DThread.java1271 public static int activeCount() { method in class:Thread
1272 return currentThread().getThreadGroup().activeCount();
1281 * <p> An application might use the {@linkplain #activeCount activeCount}

Completed in 187 milliseconds