Lines Matching refs:threads
123 final Thread[] threads = new Thread[4]; in testRacyLoader() local
124 final Object[] results = new Object[threads.length]; in testRacyLoader()
126 final RacyLoader racy_loader = new RacyLoader(system_loader, threads.length); in testRacyLoader()
130 for (int i = 0; i != threads.length; ++i) { in testRacyLoader()
145 threads[i] = t; in testRacyLoader()
147 for (Thread t : threads) { in testRacyLoader()
157 final Thread[] threads = new Thread[4]; in testRacyLoader2() local
158 final Object[] results = new Object[threads.length]; in testRacyLoader2()
160 final RacyLoader racy_loader = new RacyLoader(system_loader, threads.length); in testRacyLoader2()
166 for (int i = 0; i != threads.length; ++i) { in testRacyLoader2()
171 Class<?> helper = (my_index < threads.length / 2) ? helper1 : helper3; in testRacyLoader2()
182 threads[i] = t; in testRacyLoader2()
184 for (Thread t : threads) { in testRacyLoader2()
194 final Thread[] threads = new Thread[4]; in testRacyMisbehavingLoader() local
195 final Object[] results = new Object[threads.length]; in testRacyMisbehavingLoader()
198 new RacyMisbehavingLoader(system_loader, threads.length, false); in testRacyMisbehavingLoader()
202 for (int i = 0; i != threads.length; ++i) { in testRacyMisbehavingLoader()
217 threads[i] = t; in testRacyMisbehavingLoader()
219 for (Thread t : threads) { in testRacyMisbehavingLoader()
229 final Thread[] threads = new Thread[4]; in testRacyMisbehavingLoader2() local
230 final Object[] results = new Object[threads.length]; in testRacyMisbehavingLoader2()
233 new RacyMisbehavingLoader(system_loader, threads.length, true); in testRacyMisbehavingLoader2()
237 for (int i = 0; i != threads.length; ++i) { in testRacyMisbehavingLoader2()
252 threads[i] = t; in testRacyMisbehavingLoader2()
254 for (Thread t : threads) { in testRacyMisbehavingLoader2()