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

Issue 2579773002: Use WTF::Deque instead of std::queue in the blink scheduler (Closed)

Created:
4 years ago by alex clarke (OOO till 29th)
Modified:
3 years, 7 months ago
CC:
chromium-reviews, blink-reviews, cc-bugs_chromium.org, scheduler-bugs_chromium.org, blink-reviews-wtf_chromium.org, Mikhail
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use WTF::Deque instead of std::queue in the blink scheduler In theory this will reduce memory wasted by std::deque. It may also help diagnose some puzzling crashes we've seen related to the immediate incomming and work queues. BUG=674625 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2579773002 Cr-Commit-Position: refs/heads/master@{#443450} Committed: https://chromium.googlesource.com/chromium/src/+/63db4c771190c186415af04477809368b0c53e0b

Patch Set 1 #

Patch Set 2 : Rebase plus cut down to size #

Patch Set 3 : Rebase! #

Patch Set 4 : Add some STL naming compatability wrappers to WTF::Deque these all get inlined away by the compiler. #

Total comments: 2

Patch Set 5 : Apply the fix Sami suggested #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -45 lines) Patch
M third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.h View 1 2 3 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/task_queue_impl.cc View 1 2 3 3 chunks +9 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/work_queue.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/work_queue.cc View 1 2 3 4 chunks +8 lines, -18 lines 0 comments Download
M third_party/WebKit/Source/platform/scheduler/base/work_queue_unittest.cc View 1 2 3 4 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/wtf/Deque.h View 1 2 3 4 3 chunks +46 lines, -1 line 5 comments Download
M third_party/WebKit/Source/wtf/DequeTest.cpp View 1 1 chunk +30 lines, -0 lines 0 comments Download

Messages

Total messages: 45 (34 generated)
Sami
lgtm -- but added one observation. https://codereview.chromium.org/2579773002/diff/60001/third_party/WebKit/Source/wtf/Deque.h File third_party/WebKit/Source/wtf/Deque.h (right): https://codereview.chromium.org/2579773002/diff/60001/third_party/WebKit/Source/wtf/Deque.h#newcode532 third_party/WebKit/Source/wtf/Deque.h:532: if (m_end == ...
3 years, 11 months ago (2017-01-11 13:49:11 UTC) #25
alex clarke (OOO till 29th)
https://codereview.chromium.org/2579773002/diff/60001/third_party/WebKit/Source/wtf/Deque.h File third_party/WebKit/Source/wtf/Deque.h (right): https://codereview.chromium.org/2579773002/diff/60001/third_party/WebKit/Source/wtf/Deque.h#newcode532 third_party/WebKit/Source/wtf/Deque.h:532: if (m_end == m_buffer.capacity() - 1) On 2017/01/11 13:49:11, ...
3 years, 11 months ago (2017-01-11 14:04:26 UTC) #26
haraken
LGTM with a comment. https://codereview.chromium.org/2579773002/diff/80001/third_party/WebKit/Source/wtf/Deque.h File third_party/WebKit/Source/wtf/Deque.h (right): https://codereview.chromium.org/2579773002/diff/80001/third_party/WebKit/Source/wtf/Deque.h#newcode156 third_party/WebKit/Source/wtf/Deque.h:156: void emplace_front(Args&&...); pilgrim@: Does this ...
3 years, 11 months ago (2017-01-11 15:20:35 UTC) #30
alex clarke (OOO till 29th)
https://codereview.chromium.org/2579773002/diff/80001/third_party/WebKit/Source/wtf/Deque.h File third_party/WebKit/Source/wtf/Deque.h (right): https://codereview.chromium.org/2579773002/diff/80001/third_party/WebKit/Source/wtf/Deque.h#newcode156 third_party/WebKit/Source/wtf/Deque.h:156: void emplace_front(Args&&...); On 2017/01/11 15:20:35, haraken wrote: > > ...
3 years, 11 months ago (2017-01-11 15:29:53 UTC) #31
haraken
https://codereview.chromium.org/2579773002/diff/80001/third_party/WebKit/Source/wtf/Deque.h File third_party/WebKit/Source/wtf/Deque.h (right): https://codereview.chromium.org/2579773002/diff/80001/third_party/WebKit/Source/wtf/Deque.h#newcode549 third_party/WebKit/Source/wtf/Deque.h:549: } On 2017/01/11 15:29:53, alex clarke wrote: > On ...
3 years, 11 months ago (2017-01-11 15:45:19 UTC) #32
alex clarke (OOO till 29th)
On 2017/01/11 15:20:35, haraken wrote: > LGTM with a comment. > > https://codereview.chromium.org/2579773002/diff/80001/third_party/WebKit/Source/wtf/Deque.h > File ...
3 years, 11 months ago (2017-01-12 17:39:06 UTC) #35
pilgrim_google
On 2017/01/12 at 17:39:06, alexclarke wrote: > On 2017/01/11 15:20:35, haraken wrote: > > LGTM ...
3 years, 11 months ago (2017-01-12 17:41:31 UTC) #36
alex clarke (OOO till 29th)
Thanks all!
3 years, 11 months ago (2017-01-12 20:01:13 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2579773002/80001
3 years, 11 months ago (2017-01-12 20:01:27 UTC) #40
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/chromium/src/+/63db4c771190c186415af04477809368b0c53e0b
3 years, 11 months ago (2017-01-13 01:49:34 UTC) #43
lmilko
3 years, 7 months ago (2017-05-11 09:36:36 UTC) #45
Message was sent while issue was closed.
On 2017/01/13 01:49:34, commit-bot: I haz the power wrote:
> Committed patchset #5 (id:80001) as
>
https://chromium.googlesource.com/chromium/src/+/63db4c771190c186415af0447780...

Hi, this change is causing crash in blink_platform_perftests on Ubuntu 16.04.

More information is at:
https://bugs.chromium.org/p/chromium/issues/detail?id=718894

Powered by Google App Engine
This is Rietveld 408576698