summaryrefslogtreecommitdiff
path: root/deps/v8/src/v8threads.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/v8threads.cc')
-rw-r--r--deps/v8/src/v8threads.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/deps/v8/src/v8threads.cc b/deps/v8/src/v8threads.cc
index 838cae772d..c5fc9fa7e6 100644
--- a/deps/v8/src/v8threads.cc
+++ b/deps/v8/src/v8threads.cc
@@ -261,6 +261,8 @@ void ThreadManager::EagerlyArchiveThread() {
ThreadState* state = lazily_archived_thread_state_;
state->LinkInto(ThreadState::IN_USE_LIST);
char* to = state->data();
+ // Ensure that data containing GC roots are archived first, and handle them
+ // in ThreadManager::Iterate(ObjectVisitor*).
to = HandleScopeImplementer::ArchiveThread(to);
to = Top::ArchiveThread(to);
#ifdef ENABLE_DEBUGGER_SUPPORT