-
Notifications
You must be signed in to change notification settings - Fork 6k
Test child isolates are terminated when root is shutdown #13048
Conversation
chinmaygarde
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some nits about the unused object. But otherwise LGTM. Thanks.
runtime/dart_isolate_unittests.cc
Outdated
| TEST_F(DartIsolateTest, RootIsolateShutdownStopsChildIsolates) { | ||
| ASSERT_FALSE(DartVMRef::IsInstanceRunning()); | ||
| fml::CountDownLatch latch(9); | ||
| fml::CountDownLatch shutdown_latch(4); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this latch redundant? You are not going to count down on the latch above 9 times unless 4 of them are also from the shutdown? Your call on if you think is clearer though.
runtime/dart_isolate_unittests.cc
Outdated
| }; | ||
| auto vm_ref = DartVMRef::Create(settings); | ||
| auto vm_data = vm_ref.GetVMData(); | ||
| TaskRunners task_runners(GetCurrentTestName(), // |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These task runners are not necessary and not being used at all.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You created a new thread for it explicitly below.
)" This reverts commit e96c740.
git@github.com:flutter/engine.git/compare/5162413111b8...cef6751 git log 5162413..cef6751 --no-merges --oneline 2019-10-10 chinmaygarde@gmail.com Revert "Test child isolates are terminated when root is shutdown (#13048)" (flutter/engine#13067) 2019-10-10 garyq@google.com Test child isolates are terminated when root is shutdown (flutter/engine#13048) 2019-10-10 chinmaygarde@google.com Allow embedders to specify arbitrary data to the isolate on launch. (flutter/engine#13047) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC chinmaygarde@google.com on the revert to ensure that a human is aware of the problem. To report a problem with the AutoRoller itself, please file a bug: https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/master/autoroll/README.md
git@github.com:flutter/engine.git/compare/5162413111b8...cef6751 git log 5162413..cef6751 --no-merges --oneline 2019-10-10 chinmaygarde@gmail.com Revert "Test child isolates are terminated when root is shutdown (flutter#13048)" (flutter/engine#13067) 2019-10-10 garyq@google.com Test child isolates are terminated when root is shutdown (flutter/engine#13048) 2019-10-10 chinmaygarde@google.com Allow embedders to specify arbitrary data to the isolate on launch. (flutter/engine#13047) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC chinmaygarde@google.com on the revert to ensure that a human is aware of the problem. To report a problem with the AutoRoller itself, please file a bug: https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/master/autoroll/README.md
Verifies flutter/flutter#20764