Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Don't create default V8::Platform
Browse files Browse the repository at this point in the history
  • Loading branch information
zcbenz committed Feb 18, 2016
1 parent f030002 commit f76669f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/node.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4083,11 +4083,15 @@ static void StartNodeInstance(void* arg) {
SealHandleScope seal(isolate);
bool more;
do {
#if 0
v8::platform::PumpMessageLoop(default_platform, isolate);
#endif
more = uv_run(env->event_loop(), UV_RUN_ONCE);

if (more == false) {
#if 0
v8::platform::PumpMessageLoop(default_platform, isolate);
#endif
EmitBeforeExit(env);

// Emit `beforeExit` if the loop became alive either after emitting
Expand Down Expand Up @@ -4147,8 +4151,10 @@ int Start(int argc, char** argv) {
#endif

const int thread_pool_size = 4;
#if 0
default_platform = v8::platform::CreateDefaultPlatform(thread_pool_size);
V8::InitializePlatform(default_platform);
#endif
V8::Initialize();

int exit_code = 1;
Expand All @@ -4165,8 +4171,10 @@ int Start(int argc, char** argv) {
}
V8::Dispose();

#if 0
delete default_platform;
default_platform = nullptr;
#endif

delete[] exec_argv;
exec_argv = nullptr;
Expand Down

0 comments on commit f76669f

Please sign in to comment.