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

Issue 2000493002: cc: Fix overwriting of commit completion event in MFBA mode. (Closed)

Created:
4 years, 7 months ago by sunnyps
Modified:
4 years, 7 months ago
Reviewers:
enne (OOO)
CC:
cc-bugs_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Fix overwriting of commit completion event in MFBA mode. In main frame before activation (MFBA) mode the following sequence was problematic: 1. Commit 2. BeginMainFrame 3. StartCommitOnImpl with hold_commit_for_activation=1 (second commit) 4. NotifyReadyToActivate (first commit) 5. Activate (first commit) 6. Commit (second commit) StartCommitOnImpl will overwrite the completion event and associated flag that's used in the previous frame's activation. The activation would then signal the second commit's completion event and that commit would later crash due to accessing a null completion event. Added a test specifically for this case and also made the existing test for hold_commit_for_activation more robust. R=enne@chromium.org BUG=613007 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/2237c9b93be8a4f6c106149f714b4b88856c4549 Cr-Commit-Position: refs/heads/master@{#395185}

Patch Set 1 #

Total comments: 2

Patch Set 2 : better tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+139 lines, -66 lines) Patch
M cc/test/proxy_impl_for_test.h View 1 chunk +0 lines, -2 lines 0 comments Download
M cc/test/proxy_impl_for_test.cc View 1 chunk +0 lines, -8 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_proxy.cc View 1 1 chunk +104 lines, -32 lines 0 comments Download
M cc/trees/proxy_impl.h View 1 2 chunks +10 lines, -6 lines 0 comments Download
M cc/trees/proxy_impl.cc View 1 6 chunks +25 lines, -18 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
sunnyps
PTAL
4 years, 7 months ago (2016-05-20 04:47:49 UTC) #2
enne (OOO)
lgtm other than a comment nit, thanks for the test. https://codereview.chromium.org/2000493002/diff/1/cc/trees/proxy_impl.cc File cc/trees/proxy_impl.cc (right): https://codereview.chromium.org/2000493002/diff/1/cc/trees/proxy_impl.cc#newcode272 ...
4 years, 7 months ago (2016-05-20 18:26:12 UTC) #3
sunnyps
PTAL I fixed the data race in the test. There doesn't seem to be a ...
4 years, 7 months ago (2016-05-20 20:49:36 UTC) #4
enne (OOO)
lgtm I think checking the completion events seems pretty reasonable to me. :)
4 years, 7 months ago (2016-05-20 20:58:07 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2000493002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2000493002/20001
4 years, 7 months ago (2016-05-20 21:47:28 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 7 months ago (2016-05-20 22:25:22 UTC) #8
commit-bot: I haz the power
4 years, 7 months ago (2016-05-20 22:27:47 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/2237c9b93be8a4f6c106149f714b4b88856c4549
Cr-Commit-Position: refs/heads/master@{#395185}

Powered by Google App Engine
This is Rietveld 408576698