| Index: src/bootstrapper.cc
|
| diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
|
| index aa8d8e5ac22acc53282278b28413dedd5dc90e3c..d7491e1f1f6fb5cc0d80777ffbde5d121cc18ef8 100644
|
| --- a/src/bootstrapper.cc
|
| +++ b/src/bootstrapper.cc
|
| @@ -1814,6 +1814,11 @@ Genesis::Genesis(Handle<Object> global_object,
|
| i::Counters::contexts_created_from_scratch.Increment();
|
| }
|
|
|
| + // Add this context to the weak list of global contexts.
|
| + (*global_context_)->set(Context::NEXT_CONTEXT_LINK,
|
| + Heap::global_contexts_list());
|
| + Heap::set_global_contexts_list(*global_context_);
|
| +
|
| result_ = global_context_;
|
| }
|
|
|
|
|