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

Issue 2716163002: MessagePort: don't post repeated message dispatch tasks. (Closed)

Created:
3 years, 9 months ago by sof
Modified:
3 years, 9 months ago
Reviewers:
darin2, haraken, dcheng
CC:
chromium-reviews, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MessagePort: don't post repeated message dispatch tasks. If a task has already been posted to drain the incoming queue of messages, don't post another. R=haraken,dcheng BUG=693595 Review-Url: https://codereview.chromium.org/2716163002 Cr-Commit-Position: refs/heads/master@{#453205} Committed: https://chromium.googlesource.com/chromium/src/+/f823ed66c7c348e46f84b95e6c550fc6e827f14e

Patch Set 1 #

Patch Set 2 : improve comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -1 line) Patch
M third_party/WebKit/Source/core/dom/MessagePort.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/MessagePort.cpp View 1 4 chunks +11 lines, -1 line 2 comments Download

Messages

Total messages: 21 (14 generated)
sof
please take a look.
3 years, 9 months ago (2017-02-27 07:55:15 UTC) #9
haraken
LGTM
3 years, 9 months ago (2017-02-27 07:57:59 UTC) #10
dcheng
lgtm https://codereview.chromium.org/2716163002/diff/20001/third_party/WebKit/Source/core/dom/MessagePort.cpp File third_party/WebKit/Source/core/dom/MessagePort.cpp (right): https://codereview.chromium.org/2716163002/diff/20001/third_party/WebKit/Source/core/dom/MessagePort.cpp#newcode123 third_party/WebKit/Source/core/dom/MessagePort.cpp:123: if (atomicTestAndSetToOne(&m_pendingDispatchTask)) It really feels like we should ...
3 years, 9 months ago (2017-02-27 08:06:37 UTC) #11
sof
https://codereview.chromium.org/2716163002/diff/20001/third_party/WebKit/Source/core/dom/MessagePort.cpp File third_party/WebKit/Source/core/dom/MessagePort.cpp (right): https://codereview.chromium.org/2716163002/diff/20001/third_party/WebKit/Source/core/dom/MessagePort.cpp#newcode123 third_party/WebKit/Source/core/dom/MessagePort.cpp:123: if (atomicTestAndSetToOne(&m_pendingDispatchTask)) On 2017/02/27 08:06:37, dcheng wrote: > It ...
3 years, 9 months ago (2017-02-27 08:21:37 UTC) #12
dcheng
On 2017/02/27 08:21:37, sof wrote: > https://codereview.chromium.org/2716163002/diff/20001/third_party/WebKit/Source/core/dom/MessagePort.cpp > File third_party/WebKit/Source/core/dom/MessagePort.cpp (right): > > https://codereview.chromium.org/2716163002/diff/20001/third_party/WebKit/Source/core/dom/MessagePort.cpp#newcode123 > ...
3 years, 9 months ago (2017-02-27 08:23:48 UTC) #13
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/2716163002/20001
3 years, 9 months ago (2017-02-27 14:10:18 UTC) #18
commit-bot: I haz the power
3 years, 9 months ago (2017-02-27 14:15:05 UTC) #21
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/f823ed66c7c348e46f84b95e6c55...

Powered by Google App Engine
This is Rietveld 408576698