fix: correct redefinition which is invalid C++ (#36096)
* fix: correct redefinition which is invalid C++ See https://stackoverflow.com/a/15538759 for an explanation of class scope. GCC gives an error when compiling this code: https://godbolt.org/z/sYhc3cMjE * Update export_gin_v8platform_pageallocator_for_usage_outside_of_the_gin.patch --------- Co-authored-by: Cheng Zhao <zcbenz@gmail.com> Co-authored-by: Cheng Zhao <github@zcbenz.com>
This commit is contained in:
parent
00a542358d
commit
df6f99aa72
2 changed files with 5 additions and 5 deletions
|
@ -267,7 +267,7 @@ v8::Isolate* JavascriptEnvironment::Initialize(uv_loop_t* event_loop,
|
|||
node::tracing::TraceEventHelper::SetAgent(tracing_agent);
|
||||
platform_ = node::MultiIsolatePlatform::Create(
|
||||
base::RecommendedMaxNumberOfThreadsInThreadGroup(3, 8, 0.1, 0),
|
||||
tracing_controller, gin::V8Platform::PageAllocator());
|
||||
tracing_controller, gin::V8Platform::GetCurrentPageAllocator());
|
||||
|
||||
v8::V8::InitializePlatform(platform_.get());
|
||||
gin::IsolateHolder::Initialize(gin::IsolateHolder::kNonStrictMode,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue