Lines Matching refs:threads

192 static void StartJoinAndDeleteThreads(const i::List<JoinableThread*>& threads) {
193 for (int i = 0; i < threads.length(); i++) {
194 threads[i]->Start();
196 for (int i = 0; i < threads.length(); i++) {
197 threads[i]->Join();
199 for (int i = 0; i < threads.length(); i++) {
200 delete threads[i];
205 // Run many threads all locking on the same isolate
212 i::List<JoinableThread*> threads(kNThreads);
215 threads.Add(new IsolateLockingThreadWithLocalContext(isolate));
217 StartJoinAndDeleteThreads(threads);
242 // Run many threads each accessing its own isolate without locking
249 i::List<JoinableThread*> threads(kNThreads);
251 threads.Add(new IsolateNonlockingThread());
253 StartJoinAndDeleteThreads(threads);
280 // Run many threads with nested locks
288 i::List<JoinableThread*> threads(kNThreads);
290 threads.Add(new IsolateNestedLockingThread(isolate));
292 StartJoinAndDeleteThreads(threads);
320 // Run parallel threads that lock and access different isolates in parallel
329 i::List<JoinableThread*> threads(kNThreads);
331 threads.Add(new SeparateIsolatesLocksNonexclusiveThread(isolate1,
334 StartJoinAndDeleteThreads(threads);
394 // Use unlocker inside of a Locker, multiple threads.
401 i::List<JoinableThread*> threads(kNThreads);
404 threads.Add(new LockerUnlockerThread(isolate));
406 StartJoinAndDeleteThreads(threads);
454 i::List<JoinableThread*> threads(kNThreads);
457 threads.Add(new LockTwiceAndUnlockThread(isolate));
459 StartJoinAndDeleteThreads(threads);
583 i::List<JoinableThread*> threads(kNThreads);
585 threads.Add(new LockUnlockLockThread(isolate, context));
587 StartJoinAndDeleteThreads(threads);
632 i::List<JoinableThread*> threads(kNThreads);
634 threads.Add(new LockUnlockLockDefaultIsolateThread(context));
636 StartJoinAndDeleteThreads(threads);
717 i::List<JoinableThread*> threads(kNThreads);
719 threads.Add(new IsolateGenesisThread(8, extension_names));
721 StartJoinAndDeleteThreads(threads);