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

Issue 2505263002: Mojo EDK: Never notify own watchers within public API calls (Closed)

Created:
4 years, 1 month ago by Ken Rockot(use gerrit already)
Modified:
4 years, 1 month ago
Reviewers:
yzshen1
CC:
Aaron Boodman, abarth-chromium, chromium-reviews, darin (slow to review), qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mojo EDK: Never notify own watchers within public API calls Watcher notification requires a lock to be held, and arbitrary user code may be invoked while within that stack. As such we should never wake up a message pipe's own watcher from within a public API call on that pipe's handle. This removes such notifications from ReadMessage and WriteMessage. The notifications are entirely redundant anyway, since they will have already been triggered by OnPortStatusChanged when the underlying port was closed. BUG=665996 R=yzshen@chromium.org Committed: https://crrev.com/74279d49e257153aaac8b9362473c2a5d789dfd8 Cr-Commit-Position: refs/heads/master@{#432739}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -4 lines) Patch
M mojo/edk/system/message_pipe_dispatcher.cc View 2 chunks +0 lines, -4 lines 0 comments Download

Messages

Total messages: 15 (8 generated)
Ken Rockot(use gerrit already)
4 years, 1 month ago (2016-11-17 00:54:36 UTC) #2
yzshen1
lgtm
4 years, 1 month ago (2016-11-17 00:56:58 UTC) #5
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/2505263002/1
4 years, 1 month ago (2016-11-17 01:44:16 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_TIMED_OUT, no build URL) android_clang_dbg_recipe on ...
4 years, 1 month ago (2016-11-17 02:59:00 UTC) #10
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/2505263002/1
4 years, 1 month ago (2016-11-17 03:15:05 UTC) #12
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 1 month ago (2016-11-17 04:23:12 UTC) #13
commit-bot: I haz the power
4 years, 1 month ago (2016-11-17 04:26:50 UTC) #15
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/74279d49e257153aaac8b9362473c2a5d789dfd8
Cr-Commit-Position: refs/heads/master@{#432739}

Powered by Google App Engine
This is Rietveld 408576698