Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable shutting down all root isolates in a VM. #8457

Merged
merged 1 commit into from
Apr 5, 2019

Conversation

chinmaygarde
Copy link
Member

This reverts commit 800ea0a.

@@ -13,7 +13,7 @@ namespace blink {
// object weak pointer are behind this mutex.
static std::mutex gVMMutex;
static std::weak_ptr<DartVM> gVM FML_GUARDED_BY(gVMMutex);
static std::shared_ptr<DartVM> gVMLeak FML_GUARDED_BY(gVMMutex);
static std::shared_ptr<DartVM>* gVMLeak FML_GUARDED_BY(gVMMutex);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only difference between the previous patch and this reland. It used to be a shared pointer and now it is a pointer to one.

Copy link
Member

@cbracken cbracken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm_hanko

Copy link
Contributor

@liyuqian liyuqian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with a nit on more explanation on leak_vm.

@@ -88,7 +88,7 @@ DartVMRef DartVMRef::Create(Settings settings,
gVM = vm;

if (settings.leak_vm) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: can we have a comment in settings.h that explains why leak_vm is default to true (I guess that it's to preserve our old behavior)? The name leak_vm sounds scary to me, especially considering that its default value is true...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missed this. Sure will update the comment in an incoming patch. You're right, it is to preserve old behavior. Applications tend to "warm-up" the VM and depend on the VM running when launching subsequent apps. Not leaking by default breaks these workarounds.

@chinmaygarde chinmaygarde merged commit 424045c into flutter:master Apr 5, 2019
@chinmaygarde chinmaygarde deleted the relandstuff branch April 5, 2019 20:34
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 5, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 5, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 5, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 5, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 6, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 6, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 6, 2019
liyuqian added a commit to liyuqian/flutter that referenced this pull request Apr 6, 2019
flutter/engine@6bc33b5...fea42a2

git log 6bc33b5..fea42a2 --no-merges --oneline
fea42a2 Roll src/third_party/dart 9e1adc54a7..389ccc9000 (10 commits)
d6cf2bd Roll src/third_party/dart da4ccd0855..9e1adc54a7 (3 commits)
0c2a2c1 Initialize OpacityLayer&flutter#39;s matrix to identity (flutter/engine#8467)
7fd4caf Roll src/third_party/dart 1ad11facec..da4ccd0855 (6 commits)
d3fbaea Android Embedding PR25: Prevent black rectangle when launching FlutterActivity (flutter/engine#8460)
99da038 Document the leak_vm flag. (flutter/engine#8462)
ce7c21c Log the correct function on error in the embedder. (flutter/engine#8461)
e10d464 Improve path metrics tests and docs (flutter/engine#7851)
424045c Enable shutting down all root isolates in a VM. (flutter/engine#8457)
816e3dc Roll src/third_party/dart 907c514c89..1ad11facec (7 commits)
45dc353 Roll src/third_party/skia 0e35ce27e0e9..053b2939938c (10 commits) (flutter/engine#8458)

This roll also includes manual fix for @mustCallSuper update: call the
super method whenever possible, and suppress warnings in tests.
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 6, 2019
engine-flutter-autoroll added a commit to flutter/flutter that referenced this pull request Apr 6, 2019
flutter/engine@6bc33b5...0c393d6

git log 6bc33b5..0c393d6 --no-merges --oneline
0c393d6 Roll dart back to 907c514c8937cf76e (flutter/engine#8473)
fea42a2 Roll src/third_party/dart 9e1adc54a7..389ccc9000 (10 commits)
d6cf2bd Roll src/third_party/dart da4ccd0855..9e1adc54a7 (3 commits)
0c2a2c1 Initialize OpacityLayer&#39;s matrix to identity (flutter/engine#8467)
7fd4caf Roll src/third_party/dart 1ad11facec..da4ccd0855 (6 commits)
d3fbaea Android Embedding PR25: Prevent black rectangle when launching FlutterActivity (flutter/engine#8460)
99da038 Document the leak_vm flag. (flutter/engine#8462)
ce7c21c Log the correct function on error in the embedder. (flutter/engine#8461)
e10d464 Improve path metrics tests and docs (flutter/engine#7851)
424045c Enable shutting down all root isolates in a VM. (flutter/engine#8457)
816e3dc Roll src/third_party/dart 907c514c89..1ad11facec (7 commits)
45dc353 Roll src/third_party/skia 0e35ce27e0e9..053b2939938c (10 commits) (flutter/engine#8458)

The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md

If the roll is causing failures, please contact the current sheriff (chinmaygarde@google.com), and stop
the roller if necessary.
RBogie pushed a commit to RBogie/flutter-engine that referenced this pull request Apr 8, 2019
RBogie added a commit to RBogie/flutter-engine that referenced this pull request Apr 8, 2019
RBogie added a commit to RBogie/flutter-engine that referenced this pull request Apr 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
4 participants