Files
sdk/tests/corelib
Lasse R.H. Nielsen d8fa6fe255 Fix bug in VM _CompactHashIterable.
The iterable is used for the `keys` and `values` of `LinkedHashMap`.
The original code remembered the internal data list and used-count
when the iterable was created, and if the iterable was modified
between creating and iterating, the iterated values would not match
the map.
The solution is to not cache those values, and read them from the
hash table when creting the `Iterator` instead.

Fixes #48282

Tested: Added regression test to corelib/map_test
Bug: https://dartbug.com/48282
Change-Id: I79310615e7090556e6f45b0d7f297755951ef046
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/312263
Commit-Queue: Lasse Nielsen <lrn@google.com>
Reviewed-by: Slava Egorov <vegorov@google.com>
2023-07-04 11:00:50 +00:00
..
2023-01-20 12:37:49 +00:00
2023-03-09 15:14:32 +00:00
2023-03-09 15:14:32 +00:00
2022-12-19 12:56:47 +00:00
2022-12-19 12:56:47 +00:00
2022-12-19 12:56:47 +00:00
2022-12-19 12:56:47 +00:00
2022-12-19 12:56:47 +00:00
2022-05-24 09:10:51 +00:00
2022-05-24 09:10:51 +00:00
2022-05-24 09:10:51 +00:00
2022-12-19 12:56:47 +00:00
2023-01-19 16:24:29 +00:00