| Index: runtime/vm/code_generator.cc
|
| diff --git a/runtime/vm/code_generator.cc b/runtime/vm/code_generator.cc
|
| index 46bbe5e64ab35cb2c912b0f3c6ba3d8d3d88c140..97b8fc8d4fb261d3bf108ce08a83026ffe89a385 100644
|
| --- a/runtime/vm/code_generator.cc
|
| +++ b/runtime/vm/code_generator.cc
|
| @@ -1405,6 +1405,9 @@ DEFINE_RUNTIME_ENTRY(OptimizeInvokedFunction, 1) {
|
| if (FLAG_enable_inlining_annotations) {
|
| FATAL("Cannot enable inlining annotations and background compilation");
|
| }
|
| + if (FLAG_background_compilation_stop_alot) {
|
| + BackgroundCompiler::Stop(isolate);
|
| + }
|
| // Reduce the chance of triggering optimization while the function is
|
| // being optimized in the background. INT_MIN should ensure that it takes
|
| // long time to trigger optimization.
|
|
|