Skip to content

Commit

Permalink
src: add NODE_USE_V8_PLATFORM in InitializeOncePerProcess
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed Jun 1, 2021
1 parent dccf64e commit cdaa7ed
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/node.cc
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ int Environment::InitializeInspector(

return 0;
}
#endif // HAVE_INSPECTOR && NODE_USE_V8_PLATFORM
#endif // HAVE_INSPECTOR

#define ATOMIC_WAIT_EVENTS(V) \
V(kStartWait, "started") \
Expand Down Expand Up @@ -1069,11 +1069,14 @@ InitializationResult InitializeOncePerProcess(int argc, char** argv) {
V8::SetEntropySource(crypto::EntropySource);
#endif // HAVE_OPENSSL

#if NODE_USE_V8_PLATFORM
per_process::v8_platform.Initialize(
static_cast<int>(per_process::cli_options->v8_thread_pool_size));
V8::Initialize();
performance::performance_v8_start = PERFORMANCE_NOW();
per_process::v8_initialized = true;
#endif

return result;
}

Expand Down

0 comments on commit cdaa7ed

Please sign in to comment.