mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 12:44:21 +00:00
Add regression test for Map compaction issue.
Original fix for the issue: https://code.google.com/p/dart/source/detail?r=44671 R=kustermann@google.com Review URL: https://codereview.chromium.org//1010743005 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44702 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
parent
4b418376fe
commit
b4a53727f4
1
tests/standalone/map_literal_oom_test.dart
Normal file
1
tests/standalone/map_literal_oom_test.dart
Normal file
|
@ -0,0 +1 @@
|
|||
// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
//
// VMOptions=--old_gen_heap_size=7
// Test that compaction does occur on repeated add/remove.
main() {
var x = {};
for (int i = 0; i < 1000000; i++) {
x[i] = 10;
x.remove(i);
}
}
|
Loading…
Reference in a new issue