mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Revert "Make initialSemanticsTreeCreation less sensitive to GC timing. (#19491)"
This reverts commit 3840719987
.
Bug: https://github.com/flutter/flutter/issues/19435
This commit is contained in:
parent
12aa7ec427
commit
68b0ba9d4b
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user