| Index: src/mksnapshot.cc
|
| diff --git a/src/mksnapshot.cc b/src/mksnapshot.cc
|
| index eacd098234c40eca9227bda5bca3bf9fb2538e87..58e8669b5bf43d21d95858ae7e90962340e8501f 100644
|
| --- a/src/mksnapshot.cc
|
| +++ b/src/mksnapshot.cc
|
| @@ -399,8 +399,7 @@ int main(int argc, char** argv) {
|
| }
|
| // If we don't do this then we end up with a stray root pointing at the
|
| // context even after we have disposed of the context.
|
| - internal_isolate->heap()->CollectAllGarbage(
|
| - i::Heap::kNoGCFlags, "mksnapshot");
|
| + internal_isolate->heap()->CollectAllAvailableGarbage("mksnapshot");
|
| i::Object* raw_context = *v8::Utils::OpenPersistent(context);
|
| context.Reset();
|
|
|
|
|