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

Issue 223373002: Create HeapLinkedHashSet and LinkedHashSet, ordered heap-friendly hash sets. (Closed)

Created:
6 years, 8 months ago by Erik Corry
Modified:
6 years, 8 months ago
CC:
blink-reviews, shans, adamk+blink_chromium.org, Steve Block, dino_apple.com, rwlbuis, jamesr, krit, alancutter (OOO until 2018), dsinclair, abarth-chromium, danakj, dstockwell, Timothy Loh, Rik, pdr., Eric Willigers, rjwright, jbroman, darktears, haraken, Mike Lawther (Google), Inactive, Stephen Chennney, kouhei+heap_chromium.org
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : Remove inadvertent changes #

Total comments: 67

Patch Set 3 : Review feedback and many more tests #

Total comments: 13

Patch Set 4 : Undo accidental tightening of asserts in HashTable.h. Test and correct find<Translator> methods #

Patch Set 5 : Merge up and code review feedback from Mads and Mikhail #

Patch Set 6 : Remove using namespace directive #

Patch Set 7 : Fix gtest-related compile error on gcc by removing internal typedefs in iterators #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1626 lines, -230 lines) Patch
M Source/platform/heap/Handle.h View 1 2 3 4 7 chunks +24 lines, -7 lines 0 comments Download
M Source/platform/heap/Heap.h View 1 2 3 4 13 chunks +104 lines, -47 lines 0 comments Download
M Source/platform/heap/HeapTest.cpp View 1 2 3 4 7 chunks +216 lines, -10 lines 0 comments Download
M Source/platform/heap/Visitor.h View 1 2 3 4 6 chunks +30 lines, -4 lines 0 comments Download
M Source/wtf/HashTable.h View 1 2 3 8 chunks +25 lines, -5 lines 0 comments Download
A Source/wtf/LinkedHashSet.h View 1 2 3 4 5 1 chunk +714 lines, -0 lines 0 comments Download
M Source/wtf/ListHashSet.h View 1 2 3 4 5 6 5 chunks +8 lines, -6 lines 0 comments Download
M Source/wtf/ListHashSetTest.cpp View 1 2 3 4 3 chunks +430 lines, -76 lines 0 comments Download
M Source/wtf/TreeNodeTest.cpp View 1 2 8 chunks +45 lines, -45 lines 0 comments Download
M Source/wtf/VectorTest.cpp View 1 2 3 4 5 chunks +30 lines, -30 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
Erik Corry
6 years, 8 months ago (2014-04-03 07:02:11 UTC) #1
Erik Corry
Some explanation is perhaps in order. LinkedHashSet has the same name as the corresponding collection ...
6 years, 8 months ago (2014-04-03 07:52:57 UTC) #2
Mikhail
Could you please give a bit more details on why/how LinkedHashSet is more beneficial to ...
6 years, 8 months ago (2014-04-03 07:56:43 UTC) #3
Mikhail
On 2014/04/03 07:56:43, mikhail.pozdnyakov wrote: > Could you please give a bit more details on ...
6 years, 8 months ago (2014-04-03 07:58:07 UTC) #4
Mads Ager (chromium)
First round of comments. https://codereview.chromium.org/223373002/diff/20001/Source/heap/Heap.h File Source/heap/Heap.h (right): https://codereview.chromium.org/223373002/diff/20001/Source/heap/Heap.h#newcode1506 Source/heap/Heap.h:1506: true, // The anchor needs ...
6 years, 8 months ago (2014-04-03 09:24:34 UTC) #5
Mikhail
https://codereview.chromium.org/223373002/diff/20001/Source/wtf/LinkedHashSet.h File Source/wtf/LinkedHashSet.h (right): https://codereview.chromium.org/223373002/diff/20001/Source/wtf/LinkedHashSet.h#newcode52 Source/wtf/LinkedHashSet.h:52: struct LinkedHashSetNodeBase { this actually better to be class ...
6 years, 8 months ago (2014-04-03 09:32:17 UTC) #6
Mads Ager (chromium)
A few more comments. https://codereview.chromium.org/223373002/diff/20001/Source/wtf/LinkedHashSet.h File Source/wtf/LinkedHashSet.h (right): https://codereview.chromium.org/223373002/diff/20001/Source/wtf/LinkedHashSet.h#newcode52 Source/wtf/LinkedHashSet.h:52: struct LinkedHashSetNodeBase { Why not ...
6 years, 8 months ago (2014-04-03 09:44:58 UTC) #7
Mads Ager (chromium)
Oh, Mikhail had some of the same comments here. :)
6 years, 8 months ago (2014-04-03 09:45:33 UTC) #8
Erik Corry
Pretty major update, PTAL https://codereview.chromium.org/223373002/diff/20001/Source/heap/Heap.h File Source/heap/Heap.h (right): https://codereview.chromium.org/223373002/diff/20001/Source/heap/Heap.h#newcode1506 Source/heap/Heap.h:1506: true, // The anchor needs ...
6 years, 8 months ago (2014-04-10 10:47:36 UTC) #9
Erik Corry
https://codereview.chromium.org/223373002/diff/40001/Source/wtf/LinkedHashSet.h File Source/wtf/LinkedHashSet.h (right): https://codereview.chromium.org/223373002/diff/40001/Source/wtf/LinkedHashSet.h#newcode589 Source/wtf/LinkedHashSet.h:589: iterator endIterator = end(); I need to fix this ...
6 years, 8 months ago (2014-04-10 10:53:05 UTC) #10
Mads Ager (chromium)
LGTM And what you mean by not looping in find is that you just want ...
6 years, 8 months ago (2014-04-10 11:12:24 UTC) #11
Mikhail
looks good overall https://codereview.chromium.org/223373002/diff/40001/Source/wtf/LinkedHashSet.h File Source/wtf/LinkedHashSet.h (right): https://codereview.chromium.org/223373002/diff/40001/Source/wtf/LinkedHashSet.h#newcode132 Source/wtf/LinkedHashSet.h:132: LinkedHashSetNode(const LinkedHashSetNode&); WTF_MAKE_NONCOPYABLE ? https://codereview.chromium.org/223373002/diff/40001/Source/wtf/LinkedHashSet.h#newcode260 Source/wtf/LinkedHashSet.h:260: ...
6 years, 8 months ago (2014-04-10 12:25:02 UTC) #12
Erik Corry
https://codereview.chromium.org/223373002/diff/40001/Source/wtf/LinkedHashSet.h File Source/wtf/LinkedHashSet.h (right): https://codereview.chromium.org/223373002/diff/40001/Source/wtf/LinkedHashSet.h#newcode132 Source/wtf/LinkedHashSet.h:132: LinkedHashSetNode(const LinkedHashSetNode&); On 2014/04/10 12:25:03, mikhail.pozdnyakov wrote: > WTF_MAKE_NONCOPYABLE ...
6 years, 8 months ago (2014-04-10 13:47:28 UTC) #13
Erik Corry
https://codereview.chromium.org/223373002/diff/40001/Source/wtf/LinkedHashSet.h File Source/wtf/LinkedHashSet.h (right): https://codereview.chromium.org/223373002/diff/40001/Source/wtf/LinkedHashSet.h#newcode709 Source/wtf/LinkedHashSet.h:709: using namespace std; On 2014/04/10 13:47:29, Erik Corry wrote: ...
6 years, 8 months ago (2014-04-10 13:53:06 UTC) #14
jochen (gone - plz use gerrit)
rubberstamp lgtm
6 years, 8 months ago (2014-04-14 09:42:02 UTC) #15
Erik Corry
The CQ bit was checked by erik.corry@gmail.com
6 years, 8 months ago (2014-04-14 10:19:15 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erik.corry@gmail.com/223373002/90001
6 years, 8 months ago (2014-04-14 10:19:21 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-14 10:58:14 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_rel
6 years, 8 months ago (2014-04-14 10:58:15 UTC) #19
Erik Corry
The CQ bit was checked by erik.corry@gmail.com
6 years, 8 months ago (2014-04-14 11:45:36 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erik.corry@gmail.com/223373002/110001
6 years, 8 months ago (2014-04-14 11:45:50 UTC) #21
commit-bot: I haz the power
6 years, 8 months ago (2014-04-14 12:50:30 UTC) #22
Message was sent while issue was closed.
Change committed as 171459

Powered by Google App Engine
This is Rietveld 408576698