Skip to content

Commit 2cf2f89

Browse files
authored
Create an isolate group per isolate (#3416)
1 parent 86ab5b8 commit 2cf2f89

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/workerd/jsg/setup.c++

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,12 @@ static v8::Isolate* newIsolate(v8::Isolate::CreateParams&& params, v8::CppHeap*
310310
params.array_buffer_allocator_shared = std::shared_ptr<v8::ArrayBuffer::Allocator>(
311311
v8::ArrayBuffer::Allocator::NewDefaultAllocator());
312312
}
313+
#if (V8_MAJOR_VERSION == 13 && V8_MINOR_VERSION > 2) || V8_MAJOR_VERSION > 13
314+
v8::IsolateGroup group = v8::IsolateGroup::Create();
315+
return v8::Isolate::New(group, params);
316+
#else
313317
return v8::Isolate::New(params);
318+
#endif
314319
});
315320
}
316321
} // namespace

0 commit comments

Comments
 (0)