Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(329)

Unified Diff: tests/language/gc_test.dart

Issue 12328104: Change new List(n) to return fixed length list. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge to head. Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tests/language/gc_test.dart
diff --git a/tests/language/gc_test.dart b/tests/language/gc_test.dart
index 9ae29a27965e1537e2353ac448836bf0109aa9a0..b64a4e31ea9d65b849234158a94ac9f7d5a126e2 100644
--- a/tests/language/gc_test.dart
+++ b/tests/language/gc_test.dart
@@ -7,12 +7,12 @@
main() {
var div;
for (int i = 0; i < 200; ++i) {
- List l = new List.fixedLength(1000000);
+ List l = new List(1000000);
var m = 2;
div = (_) {
var b = l; // Was causing OutOfMemory.
};
- var lSmall = new List.fixedLength(3);
+ var lSmall = new List(3);
// Circular reference between new and old gen objects.
lSmall[0] = l;
l[0] = lSmall;

Powered by Google App Engine
This is Rietveld 408576698