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:
koda@google.com 2015-03-25 22:26:12 +00:00
parent 4b418376fe
commit b4a53727f4

View 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); } }