Skip to content

Commit

Permalink
Create an isolate group per isolate (#3416)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikcorry authored Jan 28, 2025
1 parent 86ab5b8 commit 2cf2f89
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/workerd/jsg/setup.c++
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,12 @@ static v8::Isolate* newIsolate(v8::Isolate::CreateParams&& params, v8::CppHeap*
params.array_buffer_allocator_shared = std::shared_ptr<v8::ArrayBuffer::Allocator>(
v8::ArrayBuffer::Allocator::NewDefaultAllocator());
}
#if (V8_MAJOR_VERSION == 13 && V8_MINOR_VERSION > 2) || V8_MAJOR_VERSION > 13
v8::IsolateGroup group = v8::IsolateGroup::Create();
return v8::Isolate::New(group, params);
#else
return v8::Isolate::New(params);
#endif
});
}
} // namespace
Expand Down

0 comments on commit 2cf2f89

Please sign in to comment.