Searched refs:threads (Results 1 - 25 of 129) sorted by relevance

123456

/openjdk7/jdk/test/java/nio/channels/AsynchronousFileChannel/
H A DMyThreadFactory.java29 private static final Set<Thread> threads = new HashSet<Thread>(); field in class:MyThreadFactory
32 synchronized (threads) {
33 return threads.contains(t);
44 synchronized (threads) {
45 threads.add(t);
/openjdk7/jdk/test/sun/java2d/cmm/ProfileOp/
H A DMTReadProfileTest.java34 Thread [] threads = new Thread[THREAD_COUNT];
39 threads[i] = new Thread(tests[i]);
41 for (int i = 0; i < threads.length; i++) {
42 threads[i].start();
44 for (int i = 0; i < threads.length; i++) {
45 threads[i].join();
/openjdk7/jdk/test/sun/java2d/cmm/ColorConvertOp/
H A DMTColConvTest.java34 Thread [] threads = new Thread[THREAD_COUNT];
36 for (int i = 0; i < threads.length; i+=2) {
39 threads[i] = new Thread(tests[i]);
42 threads[i+1] = new Thread(tests[i+1]);
45 for (int i = 0; i < threads.length; i++) {
46 threads[i].start();
49 for (int i = 0; i < threads.length; i++) {
50 threads[i].join();
/openjdk7/jdk/test/java/lang/management/ThreadMXBean/
H A DFindDeadlocks.java46 // create deadlocked threads
54 // Let the threads to proceed
66 // create deadlocked threads on synchronizers
69 // Let the threads to proceed
75 long[] threads = findDeadlocks();
76 if (threads == null) {
81 // form a list of newly deadlocked threads
82 long[] newList = new long[threads.length - mthreads.length];
84 for (int i = 0; i < threads.length; i++) {
85 long id = threads[
[all...]
H A DFindMonitorDeadlock.java41 // create deadlocked threads
46 long[] threads = mbean.findMonitorDeadlockedThreads();
47 if (threads != null) {
51 // Let the threads to proceed
58 threads = mbean.findMonitorDeadlockedThreads();
59 if (threads == null) {
65 System.out.println("Found threads that are in deadlock:-");
66 ThreadInfo[] infos = mbean.getThreadInfo(threads, Integer.MAX_VALUE);
71 md.checkResult(threads);
H A DMonitorDeadlock.java25 * @summary MonitorDeadlock creates threads that are deadlocked on
50 // make them daemon threads so that the test will exit
58 // Wait until all threads have started
74 // sleep a little so that all threads are blocked before notified.
88 // sleep a little while to wait until threads are blocked.
134 void checkResult(long[] threads) { argument
135 if (threads.length != EXPECTED_THREADS) {
140 for (int i = 0; i < threads.length; i++) {
142 if (dThreads[j].getId() == threads[i]) {
154 for (int j = 0; j < threads
[all...]
H A DSynchronizerDeadlock.java25 * @summary SynchronizerDeadlock creates threads that are deadlocked
50 // make them daemon threads so that the test will exit
58 // Wait until all threads have started
74 // sleep a little so that all threads are blocked before notified.
88 // sleep a little while to wait until threads are blocked.
136 void checkResult(long[] threads) { argument
137 if (threads.length != EXPECTED_THREADS) {
143 for (int i = 0; i < threads.length; i++) {
145 if (dThreads[j].getId() == threads[i]) {
157 for (int j = 0; j < threads
[all...]
/openjdk7/jdk/test/java/net/ProxySelector/
H A DMultiThreadedSystemProxies.java42 Thread[] threads = new Thread[NUM_THREADS];
45 threads[i] = new Thread(new Runnable() {
57 threads[i].start();
60 threads[i].join();
/openjdk7/jdk/test/java/beans/Introspector/
H A DTest6963811.java56 Thread[] threads = new Thread[2];
57 for (int i = 0; i < threads.length; i++) {
58 threads[i] = new Thread(new Test6963811(0L, i > 0));
59 threads[i].start();
62 for (Thread thread : threads) {
/openjdk7/jdk/test/java/beans/PropertyEditor/
H A DTest6963811.java63 Thread[] threads = new Thread[2];
64 for (int i = 0; i < threads.length; i++) {
65 threads[i] = new Thread(new Test6963811(0L, i > 0));
66 threads[i].start();
69 for (Thread thread : threads) {
/openjdk7/jdk/test/java/beans/XMLEncoder/
H A DTest6963811.java62 Thread[] threads = new Thread[2];
63 for (int i = 0; i < threads.length; i++) {
64 threads[i] = new Thread(new Test6963811(0L, i > 0));
65 threads[i].start();
68 for (Thread thread : threads) {
/openjdk7/hotspot/test/compiler/6863420/
H A DTest.java63 System.out.println("Spawning " + numThreads + " threads");
64 final Thread threads[] = new Thread[numThreads];
65 for (int i = 0; i < threads.length; i++) {
89 threads[i] = new Thread(thread, "Thread" + i);
91 for (int i = 0; i < threads.length; i++) {
92 threads[i].start();
94 for (int i = 0; i < threads.length; i++) {
96 threads[i].join();
/openjdk7/jdk/test/java/util/Locale/
H A DBug6989440.java44 Thread[] threads = new Thread[THREADS];
45 for (int i=0; i<threads.length; i++)
46 threads[i] = new TestThread();
47 for (int i=0; i<threads.length; i++)
48 threads[i].start();
49 for (int i=0; i<threads.length; i++)
50 threads[i].join();
/openjdk7/jdk/src/share/classes/java/lang/
H A DApplicationShutdownHooks.java95 Collection<Thread> threads;
97 threads = hooks.keySet();
101 for (Thread hook : threads) {
104 for (Thread hook : threads) {
/openjdk7/jdk/src/share/classes/com/sun/jdi/
H A DThreadGroupReference.java59 * Suspends all threads in this thread group. Each thread
65 * called, it is possible that new threads will be created
66 * between the time that threads are enumerated and all of them
73 * Resumes all threads in this thread group. Each thread
82 * in this thread group. Only the live threads in this immediate thread group
87 * live threads from this thread group in the target VM.
89 List<ThreadReference> threads(); method in interface:ThreadGroupReference
/openjdk7/jdk/test/java/lang/instrument/
H A DStressGetObjectSizeApp.java56 RoundAndRound[] threads = new RoundAndRound[10];
57 for (int i = 0; i < threads.length; ++i) {
58 threads[i] = new RoundAndRound(fInst);
59 threads[i].start();
62 Thread.sleep(500); // let all threads get going in their loops
/openjdk7/jdk/test/javax/security/auth/login/Configuration/
H A DSynchronize.java54 Synchronize[] threads = new Synchronize[loop];
56 threads[i] = new Synchronize();
60 threads[i].start();
64 threads[i].join();
/openjdk7/jdk/test/com/sun/management/ThreadMXBean/
H A DThreadCpuTimeArray.java41 private static Thread[] threads = new Thread[NUM_THREADS]; field in class:ThreadCpuTimeArray
63 // start threads, wait for them to block
67 threads[i] = new MyThread("MyThread-" + i);
68 threads[i].start();
69 ids[i] = threads[i].getId();
72 // threads block after doing some computation
88 threads[i].getName() + " = " + t + " expected = -1");
94 threads[i].getName() + " = " + ut + " expected = -1");
118 threads[i].getName() + " = " + t);
124 threads[
[all...]
H A DThreadAllocatedMemoryArray.java41 private static Thread[] threads = new Thread[NUM_THREADS]; field in class:ThreadAllocatedMemoryArray
51 // start threads, wait for them to block
55 threads[i] = new MyThread("MyThread-" + i);
56 threads[i].start();
57 ids[i] = threads[i].getId();
84 threads[i].getName() + " = " + s + " expected = -1");
105 threads[i].getName() + " = " + s);
109 // let threads go and do some more allocation
115 // wait for threads to get going again. we don't care if we
126 threads[
[all...]
/openjdk7/jdk/src/share/classes/com/sun/tools/example/debug/tty/
H A DThreadInfo.java48 private static List<ThreadInfo> threads = Collections.synchronizedList(new ArrayList<ThreadInfo>()); field in class:ThreadInfo
67 threads.add(new ThreadInfo(thread));
74 synchronized (threads) {
79 // by a thread start event and by the initial call to threads()
81 threads.add(ti);
106 threads.remove(getThreadInfo(thread));
109 static List<ThreadInfo> threads() { method in class:ThreadInfo
110 synchronized(threads) {
113 return new ArrayList<ThreadInfo>(threads);
120 synchronized (threads) {
[all...]
/openjdk7/hotspot/test/compiler/6589834/
H A DTest_ia32.java47 Reflector[] threads = new Reflector[NUM_THREADS];
48 for (int i = 0; i < threads.length; i++) {
49 threads[i] = new Reflector();
50 threads[i].start();
59 for (Reflector thread : threads)
62 for (Reflector thread : threads)
/openjdk7/jdk/src/share/classes/com/sun/tools/jdi/
H A DVMState.java52 List<ThreadReference> threads = null; // cached Threads field in class:VMState.Cache
119 * All threads are resuming
192 List<ThreadReference> threads = null;
198 threads = local.threads;
200 if (threads == null) {
201 threads = Arrays.asList((ThreadReference[])JDWP.VirtualMachine.AllThreads.
202 process(vm).threads);
204 local.threads = threads;
[all...]
/openjdk7/jdk/test/java/io/PipedInputStream/
H A DWriterLoop.java74 System.out.println("Active threads:");
75 Thread[] threads = new Thread[Thread.activeCount()];
76 Thread.enumerate(threads);
77 for (int i = 0; i < threads.length; i++) {
78 System.out.println(" " + threads[i]);
/openjdk7/jdk/test/java/lang/Thread/
H A DStartOOMTest.java42 List<Thread> threads = new ArrayList<Thread>();
49 threads.add(t);
59 for (Thread t : threads)
67 for (Thread t : threads)
/openjdk7/jdk/test/java/util/Random/
H A DDistinctSeeds.java63 List<Thread> threads = new ArrayList<Thread>();
67 threads.add(new Thread(r));
69 for (Thread thread : threads)
71 for (Thread thread : threads)

Completed in 89 milliseconds

123456