Unverified Commit 38407199 authored by Ryan Macnak's avatar Ryan Macnak Committed by GitHub

Make initialSemanticsTreeCreation less sensitive to GC timing. (#19491)

Bug: https://github.com/flutter/flutter/issues/19435
parent b8b6d416
......@@ -5,7 +5,16 @@
import 'package:flutter_driver/driver_extension.dart';
import 'package:complex_layout/main.dart' as app;
// Avoid sensitivity to GC timing.
dynamic provokeSemispaceGrowth() {
dynamic tree(int n) {
return n == 0 ? null : <dynamic>[tree(n - 1), tree(n - 1)];
}
return tree(16); // 2^16 * 6 words ~= 1.5 MB
}
void main() {
provokeSemispaceGrowth();
enableFlutterDriverExtension();
app.main();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment