File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 28
28
29
29
namespace dart {
30
30
31
+ DEFINE_FLAG (bool ,
32
+ enable_isolate_groups,
33
+ true ,
34
+ " Whether to enable support for isolate groups." );
35
+
31
36
DEFINE_NATIVE_ENTRY (CapabilityImpl_factory, 0 , 1 ) {
32
37
ASSERT (
33
38
TypeArguments::CheckedHandle (zone, arguments->NativeArgAt (0 )).IsNull ());
@@ -152,7 +157,8 @@ class SpawnIsolateTask : public ThreadPool::Task {
152
157
// Create a new isolate.
153
158
char * error = nullptr ;
154
159
Isolate* isolate = nullptr ;
155
- if (group == nullptr || initialize_callback == nullptr ) {
160
+ if (!FLAG_enable_isolate_groups || group == nullptr ||
161
+ initialize_callback == nullptr ) {
156
162
// Make a copy of the state's isolate flags and hand it to the callback.
157
163
Dart_IsolateFlags api_flags = *(state_->isolate_flags ());
158
164
isolate = reinterpret_cast <Isolate*>((create_group_callback)(
You can’t perform that action at this time.
0 commit comments