-
Notifications
You must be signed in to change notification settings - Fork 6k
Add option to enable serial GC #30975
Conversation
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat. If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
shell/common/switches.h
Outdated
"with assertions disabled in the debug product mode (i.e. with JIT " | ||
"or DBC).") | ||
DEF_SWITCH(EnableSerialGC, | ||
"enable_serial_gc", |
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.
It looks like the style in this file is to use '-' rather than '_' to separate the words in a flag.
"enable_serial_gc", | |
"enable-serial-gc", |
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.
Done.
testing/dart/serial_gc_test.dart
Outdated
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
// FlutterTesterOptions=--serial_gc |
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.
Does this need to be --enable-serial-gc
?
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.
Done.
testing/dart/serial_gc_test.dart
Outdated
@@ -0,0 +1,17 @@ | |||
// Copyright 2022 The Flutter Authors. All rights reserved. |
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.
Flutter keeps 2013 as the copyright year for all files.
// Copyright 2022 The Flutter Authors. All rights reserved. | |
// Copyright 2013 The Flutter Authors. All rights reserved. |
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.
Done.
This commit is empty and simply triggers a new build to open the tree. Commit 106963e was re-built after a succesful build; upload to the cloud storage bin failed.
This option can be used to avoid thread contention issues for the UI thread when running on low power devices with limited number of cores.
This option can be used to avoid thread contention issues for the UI thread when running on low power devices with limited number of cores.