dart-sdk/runtime
Martin Kustermann d822f36f15 VM: Fix memory leak during shutdown
The way runtime/platform/hashmap.h:HashMap was implemented so far did not allow
deleting elements while iterating over the map. If one iterated like this

  HashMap::Entry* cursor = map.Start();
  while (cursor != NULL) {
    if (cond) {
      map.Remove(cursor->key, cursor->hash);
    }
    cursor = map.Next(cursor);
  }

Then the iteration `cursor` will skip elements. This is due to the fact that
`HashMap::Remove()` is left-rotating elements in certain cases and
`HashMap::Next()` will unconditionally advance to the next position in the
backing store.

PROBLEM IS: There was existing code which did remove elements while iterating
over a HashMap.

R=fschneider@google.com

Review URL: https://codereview.chromium.org/2533303005 .
2016-11-30 23:52:04 +01:00
..
bin VM: Fix memory leak during shutdown 2016-11-30 23:52:04 +01:00
include Dump stack trace on segfault in the VM. 2016-11-23 10:29:07 -08:00
lib Make EfficientLength extend Iterable. 2016-11-28 08:04:04 +01:00
observatory Update status for failing tests 2016-11-29 14:26:27 +01:00
platform VM: Fix memory leak during shutdown 2016-11-30 23:52:04 +01:00
tests/vm Fuchsia: Enable newly working socket tests; use MX_CLOCK_UTC. 2016-11-28 15:50:54 -08:00
third_party Format GN files and add a presubmit check that GN is properly formatted 2016-10-26 08:50:54 -07:00
tools Fix the Fuchsia build 2016-10-27 09:59:58 -07:00
vm Fixed the conditions of an assert causing the debug VM to crash when trying to load a library from an invalid path. Created copy of a previous deferred_import_t02.dart test from co19 as a regression test until deferred_import_t02.dart is reverted to the previous test. 2016-11-29 14:07:19 -08:00
.gitignore
BUILD.gn GN: Removes libdart_nosnapshot_precompiled_runtime 2016-11-16 08:57:17 -08:00
codereview.settings
CPPLINT.cfg clang-formats remaining files and adds a presubmit check. 2016-11-09 12:43:57 -08:00
dart-runtime.gyp
PRESUBMIT.py clang-formats remaining files and adds a presubmit check. 2016-11-09 12:43:57 -08:00