Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@bkonyi
Copy link
Contributor

@bkonyi bkonyi commented May 30, 2019

Fixes part of flutter/flutter#32176

@bkonyi
Copy link
Contributor Author

bkonyi commented May 30, 2019

FLUTTER_RUNTIME_MODE != FLUTTER_RUNTIME_MODE_DYNAMIC_RELEASE

// List of common and safe VM flags to allow to be passed directly to the VM.
static const std::string gDartFlagsWhitelist[] = {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The current whitelist is just composed of some flags that I thought would be useful and safe. I'm happy to add/remove from this list based on feedback.

Copy link
Member

@chinmaygarde chinmaygarde left a comment

Choose a reason for hiding this comment

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

Can you add a unit test for this in the shell_unittests target?

@bkonyi
Copy link
Contributor Author

bkonyi commented Jun 4, 2019

Can you add a unit test for this in the shell_unittests target?

Testing that the whitelist check catches bad flags will cause the process to exit. Did we just want to check that whitelisted flags aren't dropped?

@chinmaygarde
Copy link
Member

@bkonyi
Copy link
Contributor Author

bkonyi commented Jun 4, 2019

You can use death tests in the Google test harness https://github.com/google/googletest/blob/master/googletest/docs/advanced.md#death-tests

Oh cool, I didn't know that existed. Thanks for guiding me in the right direction :-) I've added a couple of tests.

@bkonyi bkonyi merged commit 12f48f7 into master Jun 4, 2019
@bkonyi bkonyi deleted the dart_vm_whitelisted_flags branch June 4, 2019 21:51
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jun 4, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jun 5, 2019
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jun 5, 2019
engine-flutter-autoroll added a commit to flutter/flutter that referenced this pull request Jun 5, 2019
flutter/engine@86aa014...bf15bd0

git log 86aa014..bf15bd0 --no-merges --oneline
bf15bd0 Add the key event source, vendorId, and productId from Android (flutter/engine#9186)
d4c7c30 Roll src/third_party/skia a4bb02063672..346f82c1c3e0 (6 commits) (flutter/engine#9188)
7746e2e Compile the physical_shape_layer_unittests.cc TU. (flutter/engine#9187)
12f48f7 Allow for whitelisted flags to be passed to the Dart VM (flutter/engine#9148)
b304dab [scene_host] Cleanup scene_host closures (flutter/engine#9061)

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 ([email protected]), and stop
the roller if necessary.
huqiuser pushed a commit to huqiuser/engine that referenced this pull request Jun 12, 2019
* Allow for whitelisted flags to be passed to the Dart VM

Fixed part of flutter/flutter#32176
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants