Index: src/mksnapshot.cc |
diff --git a/src/mksnapshot.cc b/src/mksnapshot.cc |
index 9cf9e2e8a422c28f0488d011ecfceb9a9d98931d..75babb57d0e587d0d9f5c952208d4f9c79dd60d4 100644 |
--- a/src/mksnapshot.cc |
+++ b/src/mksnapshot.cc |
@@ -310,6 +310,7 @@ void DumpException(Handle<Message> message) { |
int main(int argc, char** argv) { |
V8::InitializeICU(); |
+ i::Isolate::SetCrashIfDefaultIsolateInitialized(); |
// By default, log code create information in the snapshot. |
i::FLAG_log_code = true; |
@@ -330,7 +331,10 @@ int main(int argc, char** argv) { |
exit(1); |
} |
#endif |
- Isolate* isolate = Isolate::GetCurrent(); |
+ i::FLAG_logfile_per_isolate = false; |
+ |
+ Isolate* isolate = v8::Isolate::New(); |
+ isolate->Enter(); |
i::Isolate* internal_isolate = reinterpret_cast<i::Isolate*>(isolate); |
i::Serializer::Enable(internal_isolate); |
Persistent<Context> context; |