diff options
Diffstat (limited to 'deps/v8/src/v8threads.cc')
-rw-r--r-- | deps/v8/src/v8threads.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/deps/v8/src/v8threads.cc b/deps/v8/src/v8threads.cc index 0fb333c1f3..67fa40804b 100644 --- a/deps/v8/src/v8threads.cc +++ b/deps/v8/src/v8threads.cc @@ -238,12 +238,13 @@ ThreadState* ThreadState::Next() { // Thread ids must start with 1, because in TLS having thread id 0 can't // be distinguished from not having a thread id at all (since NULL is // defined as 0.) -ThreadManager::ThreadManager() +ThreadManager::ThreadManager(Isolate* isolate) : mutex_owner_(ThreadId::Invalid()), lazily_archived_thread_(ThreadId::Invalid()), lazily_archived_thread_state_(nullptr), free_anchor_(nullptr), - in_use_anchor_(nullptr) { + in_use_anchor_(nullptr), + isolate_(isolate) { free_anchor_ = new ThreadState(this); in_use_anchor_ = new ThreadState(this); } |