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

Issue 973213002: Make AsyncHandleWaiter reenterancy-safe (Closed)

Created:
5 years, 9 months ago by Hajime Morrita
Modified:
5 years, 9 months ago
Reviewers:
viettrungluu
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make AsyncHandleWaiter reenterancy-safe On Windows, message pump can re-enter. AsyncHandleWaiter should be prepared for that. R=viettrungluu@chromium.org BUG=none TEST=ExtensionApiTest.SharedModuleWhitelist (this hits the DCHECK) Committed: https://crrev.com/a8c3c7dfa409152914df3363a931f7ed1348c760 Cr-Commit-Position: refs/heads/master@{#319202}

Patch Set 1 #

Patch Set 2 : #

Total comments: 7

Patch Set 3 : Added some tests #

Total comments: 1

Patch Set 4 : Landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -10 lines) Patch
M ipc/mojo/async_handle_waiter.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M ipc/mojo/async_handle_waiter.cc View 1 2 3 7 chunks +23 lines, -10 lines 0 comments Download
M ipc/mojo/async_handle_waiter_unittest.cc View 1 2 1 chunk +47 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (2 generated)
Hajime Morrita
5 years, 9 months ago (2015-03-03 20:46:56 UTC) #1
Hajime Morrita
Trung: PTAL? This is blocking https://codereview.chromium.org/960693003/
5 years, 9 months ago (2015-03-03 20:48:15 UTC) #2
viettrungluu
https://codereview.chromium.org/973213002/diff/20001/ipc/mojo/async_handle_waiter.cc File ipc/mojo/async_handle_waiter.cc (right): https://codereview.chromium.org/973213002/diff/20001/ipc/mojo/async_handle_waiter.cc#newcode70 ipc/mojo/async_handle_waiter.cc:70: return 0 < processing_; nit: "processing_ > 0" would ...
5 years, 9 months ago (2015-03-03 22:03:33 UTC) #3
viettrungluu
(Also, how hard would it be to write a more minimal test, rather than relying ...
5 years, 9 months ago (2015-03-03 22:04:29 UTC) #4
Hajime Morrita
On 2015/03/03 22:04:29, viettrungluu wrote: > (Also, how hard would it be to write a ...
5 years, 9 months ago (2015-03-03 22:12:49 UTC) #5
Hajime Morrita
Found that if needs a real UI message loop to hit the case, which is ...
5 years, 9 months ago (2015-03-04 23:16:09 UTC) #6
viettrungluu
LGTM w/nit. https://codereview.chromium.org/973213002/diff/40001/ipc/mojo/async_handle_waiter.cc File ipc/mojo/async_handle_waiter.cc (right): https://codereview.chromium.org/973213002/diff/40001/ipc/mojo/async_handle_waiter.cc#newcode69 ipc/mojo/async_handle_waiter.cc:69: return 0 < io_loop_level_; nit: io_loop_level_ > ...
5 years, 9 months ago (2015-03-05 01:10:46 UTC) #7
Hajime Morrita
Thanks! Landing with a fix.
5 years, 9 months ago (2015-03-05 01:31:18 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/973213002/60001
5 years, 9 months ago (2015-03-05 01:32:34 UTC) #11
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 9 months ago (2015-03-05 03:06:44 UTC) #12
commit-bot: I haz the power
5 years, 9 months ago (2015-03-05 03:07:30 UTC) #13
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/a8c3c7dfa409152914df3363a931f7ed1348c760
Cr-Commit-Position: refs/heads/master@{#319202}

Powered by Google App Engine
This is Rietveld 408576698