Commit 68b0ba9d authored by Ryan Macnak's avatar Ryan Macnak

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

This reverts commit 38407199.

Bug: https://github.com/flutter/flutter/issues/19435
parent 12aa7ec4
......@@ -5,16 +5,7 @@
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