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

Issue 228403002: Deque: Add HeapDeque and prevent buggy use of swap and operator= (Closed)

Created:
6 years, 8 months ago by Erik Corry
Modified:
6 years, 8 months ago
CC:
blink-reviews, Mikhail, adamk+blink_chromium.org, Inactive, abarth-chromium
Visibility:
Public.

Description

Deque: Add HeapDeque and prevent buggy use of swap and operator= R=ager@chromium.org, jochen@chromium.org, mikhail.pozdynakov@intel.com BUG= Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=171121

Patch Set 1 #

Total comments: 15

Patch Set 2 : Add missing DequeTest.cpp #

Patch Set 3 : Reuse finalization templates from Vector and other code review changes #

Patch Set 4 : Fix whitespace #

Total comments: 4

Patch Set 5 : Fix the things marked "Done" in the code review where I accidentally edited the wrong file due to f… #

Patch Set 6 : Fix Ians nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+767 lines, -127 lines) Patch
M Source/platform/heap/Handle.h View 1 5 chunks +30 lines, -0 lines 0 comments Download
M Source/platform/heap/Heap.h View 1 2 3 4 5 6 chunks +84 lines, -4 lines 0 comments Download
M Source/platform/heap/HeapTest.cpp View 18 chunks +188 lines, -10 lines 0 comments Download
M Source/wtf/Deque.h View 1 2 3 4 22 chunks +145 lines, -97 lines 0 comments Download
A Source/wtf/DequeTest.cpp View 1 2 3 1 chunk +300 lines, -0 lines 0 comments Download
M Source/wtf/Vector.h View 8 chunks +16 lines, -13 lines 0 comments Download
M Source/wtf/VectorTest.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M Source/wtf/wtf.gypi View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Erik Corry
6 years, 8 months ago (2014-04-08 09:33:41 UTC) #1
Mads Ager (chromium)
There seems to be a file missing. :) https://codereview.chromium.org/228403002/diff/1/Source/platform/heap/Heap.h File Source/platform/heap/Heap.h (right): https://codereview.chromium.org/228403002/diff/1/Source/platform/heap/Heap.h#newcode1773 Source/platform/heap/Heap.h:1773: COMPILE_ASSERT(!Traits::isWeak, ...
6 years, 8 months ago (2014-04-08 10:46:17 UTC) #2
wibling-chromium
lgtm except for the missing file:) https://codereview.chromium.org/228403002/diff/1/Source/platform/heap/Heap.h File Source/platform/heap/Heap.h (right): https://codereview.chromium.org/228403002/diff/1/Source/platform/heap/Heap.h#newcode1438 Source/platform/heap/Heap.h:1438: Deque<T, inlineCapacity, HeapAllocator>::swap(other); ...
6 years, 8 months ago (2014-04-08 10:49:40 UTC) #3
Mikhail
https://codereview.chromium.org/228403002/diff/1/Source/wtf/Deque.h File Source/wtf/Deque.h (right): https://codereview.chromium.org/228403002/diff/1/Source/wtf/Deque.h#newcode49 Source/wtf/Deque.h:49: class DequeDestructorBase { This looks similar to the existing ...
6 years, 8 months ago (2014-04-08 11:03:01 UTC) #4
Erik Corry
https://codereview.chromium.org/228403002/diff/1/Source/platform/heap/Heap.h File Source/platform/heap/Heap.h (right): https://codereview.chromium.org/228403002/diff/1/Source/platform/heap/Heap.h#newcode1438 Source/platform/heap/Heap.h:1438: Deque<T, inlineCapacity, HeapAllocator>::swap(other); On 2014/04/08 10:49:40, wibling-chromium wrote: > ...
6 years, 8 months ago (2014-04-08 11:48:52 UTC) #5
Mikhail
lgtm https://codereview.chromium.org/228403002/diff/60001/Source/wtf/Deque.h File Source/wtf/Deque.h (right): https://codereview.chromium.org/228403002/diff/60001/Source/wtf/Deque.h#newcode56 Source/wtf/Deque.h:56: { Off topic: the same allocation operators are ...
6 years, 8 months ago (2014-04-08 12:11:29 UTC) #6
Mads Ager (chromium)
LGTM
6 years, 8 months ago (2014-04-08 12:13:13 UTC) #7
Erik Corry
https://codereview.chromium.org/228403002/diff/60001/Source/wtf/Deque.h File Source/wtf/Deque.h (right): https://codereview.chromium.org/228403002/diff/60001/Source/wtf/Deque.h#newcode63 Source/wtf/Deque.h:63: { On 2014/04/08 12:11:30, mikhail.pozdnyakov wrote: > is this ...
6 years, 8 months ago (2014-04-08 12:14:35 UTC) #8
zerny-chromium
lgtm https://codereview.chromium.org/228403002/diff/60001/Source/platform/heap/Heap.h File Source/platform/heap/Heap.h (right): https://codereview.chromium.org/228403002/diff/60001/Source/platform/heap/Heap.h#newcode1523 Source/platform/heap/Heap.h:1523: // a specialization of GCInfoTrait for these three ...
6 years, 8 months ago (2014-04-08 12:38:50 UTC) #9
jochen (gone - plz use gerrit)
lgtm
6 years, 8 months ago (2014-04-08 13:32:51 UTC) #10
Erik Corry
The CQ bit was checked by erik.corry@gmail.com
6 years, 8 months ago (2014-04-08 13:50:03 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erik.corry@gmail.com/228403002/100001
6 years, 8 months ago (2014-04-08 13:50:11 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-08 14:08:10 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on win_blink_compile_dbg
6 years, 8 months ago (2014-04-08 14:08:10 UTC) #14
Erik Corry
The CQ bit was checked by erik.corry@gmail.com
6 years, 8 months ago (2014-04-09 07:09:56 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erik.corry@gmail.com/228403002/100001
6 years, 8 months ago (2014-04-09 07:10:04 UTC) #16
commit-bot: I haz the power
6 years, 8 months ago (2014-04-09 07:36:07 UTC) #17
Message was sent while issue was closed.
Change committed as 171121

Powered by Google App Engine
This is Rietveld 408576698