Lines Matching defs:thread
367 isolate->ThrowError("Worker is defunct because main thread is terminating");
378 // OS-specific padding for thread startup code. 2Mbytes seems to be enough.
2556 // creating a new Worker (because the main thread is terminating) we can
2561 // Don't allow workers to create more workers if the main thread
2574 // internal std::shared_ptr in the worker thread itself.
2582 isolate->ThrowError("Can't start thread");
3313 // This needs to be a critical section since this is not thread-safe
4128 auto thread = new WorkerThread(worker);
4129 worker->thread_ = thread;
4130 if (!thread->Start()) return false;
4139 // We must clear the worker_ field of the thread, but we keep the
4140 // worker alive via a stack root until the thread finishes execution
4349 // Post nullptr to wake the thread waiting on GetMessage() if there is one.
4569 } else if (strncmp(argv[i], "--thread-pool-size=", 19) == 0) {
4751 // Park the main thread here to prevent deadlocks in shared GCs when waiting
5509 // Park the main thread here in case the new isolate wants to perform