Chromium Code Reviews| Index: src/api.cc |
| diff --git a/src/api.cc b/src/api.cc |
| index d094dbd55c4cf9f20e4ee3caf48bf846333152d5..9199a0731de11f013b520886364236642bf0e856 100644 |
| --- a/src/api.cc |
| +++ b/src/api.cc |
| @@ -212,6 +212,7 @@ StartupData V8::CreateSnapshotDataBlob() { |
| Isolate* isolate = v8::Isolate::New(params); |
| StartupData result = {NULL, 0}; |
| { |
| + Locker locker(isolate); |
| Isolate::Scope isolate_scope(isolate); |
| i::Isolate* internal_isolate = reinterpret_cast<i::Isolate*>(isolate); |
| Persistent<Context> context; |