Index: test/cctest/cctest.cc |
diff --git a/test/cctest/cctest.cc b/test/cctest/cctest.cc |
index 0be152064e7fd28b0e06356fc98e3e99a2fc5aee..0fbbbb229003486e5a600c6eed0c88c5184fd797 100644 |
--- a/test/cctest/cctest.cc |
+++ b/test/cctest/cctest.cc |
@@ -28,6 +28,7 @@ |
#include "include/v8.h" |
#include "test/cctest/cctest.h" |
+#include "include/libplatform/libplatform.h" |
#include "src/debug.h" |
#include "test/cctest/print-extension.h" |
#include "test/cctest/profiler-extension.h" |
@@ -138,6 +139,9 @@ static void SuggestTestHarness(int tests) { |
int main(int argc, char* argv[]) { |
v8::V8::InitializeICU(); |
+ v8::Platform* platform = v8::platform::CreateDefaultPlatform( |
+ v8::base::OS::NumberOfProcessorsOnline()); |
+ v8::V8::InitializePlatform(platform); |
i::Isolate::SetCrashIfDefaultIsolateInitialized(); |
v8::internal::FlagList::SetFlagsFromCommandLine(&argc, argv, true); |
@@ -206,6 +210,8 @@ int main(int argc, char* argv[]) { |
CcTest::TearDown(); |
// TODO(svenpanne) See comment above. |
// if (!disable_automatic_dispose_) v8::V8::Dispose(); |
+ v8::V8::ShutdownPlatform(); |
+ delete platform; |
return 0; |
} |