forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[tracing] Avoid race condition on sync observers removal.
Observers list cannot be iterated out of a lock, as then the callback can be invoked on an observer that had just been removed and deleted. That comes at a cost of not allowing self removal of observers. None of the clients seems to utilize that feature so far. It could technically be implemented, but it's hard to justify the complexity it would bring. Change-Id: Iaf6374e5344a2fc774246829648bd5c71740b6f5 Reviewed-on: https://chromium-review.googlesource.com/1237250 Reviewed-by: Jochen Eisinger <jochen@chromium.org> Reviewed-by: Dmitry Gozman <dgozman@chromium.org> Reviewed-by: oysteine <oysteine@chromium.org> Reviewed-by: Siddhartha S <ssid@chromium.org> Commit-Queue: Alexei Filippov <alph@chromium.org> Cr-Commit-Position: refs/heads/master@{#594186}
- Loading branch information
Showing
4 changed files
with
128 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters