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

Issue 23451045: Revert "Convert HashSet, LinkedHashSet to factory methods and custom implementations." (Closed)

Created:
7 years, 3 months ago by Lasse Reichstein Nielsen
Modified:
7 years, 3 months ago
Reviewers:
floitsch, blois
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Revert "Convert HashSet, LinkedHashSet to factory methods and custom implementations." Triggers an error in html tests on dartium. Committed: https://code.google.com/p/dart/source/detail?r=27392

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+840 lines, -661 lines) Patch
M pkg/unmodifiable_collection/test/unmodifiable_collection_test.dart View 5 chunks +27 lines, -27 lines 0 comments Download
M runtime/lib/collection_patch.dart View 7 chunks +688 lines, -373 lines 0 comments Download
M sdk/lib/_internal/lib/collection_patch.dart View 18 chunks +36 lines, -192 lines 0 comments Download
M sdk/lib/collection/hash_set.dart View 3 chunks +36 lines, -46 lines 0 comments Download
M sdk/lib/collection/linked_hash_set.dart View 1 chunk +46 lines, -4 lines 0 comments Download
M sdk/lib/core/list.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/corelib/hash_set_test.dart View 2 chunks +0 lines, -2 lines 0 comments Download
M tests/corelib/set_test.dart View 2 chunks +1 line, -11 lines 0 comments Download
M tests/language/issue10561_test.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M tests/language/issue9949_test.dart View 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Lasse Reichstein Nielsen
TBR
7 years, 3 months ago (2013-09-11 14:35:24 UTC) #1
Lasse Reichstein Nielsen
Committed patchset #1 manually as r27392 (presubmit successful).
7 years, 3 months ago (2013-09-11 16:20:22 UTC) #2
blois
Looks like LinkedHashSet.clear is setting the length to 0, but new List.from(set) is getting the ...
7 years, 3 months ago (2013-09-11 16:29:08 UTC) #3
Lasse Reichstein Nielsen
7 years, 3 months ago (2013-09-12 09:17:34 UTC) #4
Message was sent while issue was closed.
Ack, yes, the LinkedHashSet was inheriting the clear method from HashSet, so it
forgot to clear the *links*. Iteration would still find the elements (because it
traverses using the links) but the table itself was empty. Memory leak is the
least of the problems with that.

Powered by Google App Engine
This is Rietveld 408576698