Index: runtime/vm/isolate.cc |
=================================================================== |
--- runtime/vm/isolate.cc (revision 43705) |
+++ runtime/vm/isolate.cc (working copy) |
@@ -633,11 +633,6 @@ |
ISOLATE_METRIC_LIST(ISOLATE_METRIC_INIT); |
#undef ISOLATE_METRIC_INIT |
- |
- // Add to isolate list. |
- AddIsolateTolist(result); |
- |
- |
// TODO(5411455): For now just set the recently created isolate as |
// the current isolate. |
SetCurrent(result); |
@@ -684,6 +679,9 @@ |
} |
} |
+ // Add to isolate list. |
+ AddIsolateTolist(result); |
+ |
return result; |
} |