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

Unified Diff: mojo/public/cpp/bindings/lib/multiplex_router.cc

Issue 2666423002: Assert sequence validity on non-thread-safe RefCount manipulations (2) (Closed)
Patch Set: rebase Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: mojo/public/cpp/bindings/lib/multiplex_router.cc
diff --git a/mojo/public/cpp/bindings/lib/multiplex_router.cc b/mojo/public/cpp/bindings/lib/multiplex_router.cc
index 2da459ae8f8ca5ee8704164bbeefaad3a93a2c88..022b6b2e3707988abb77f182ffb7c0ffaf1dcabd 100644
--- a/mojo/public/cpp/bindings/lib/multiplex_router.cc
+++ b/mojo/public/cpp/bindings/lib/multiplex_router.cc
@@ -440,6 +440,7 @@ InterfaceId MultiplexRouter::AssociateInterface(
} while (base::ContainsKey(endpoints_, id));
InterfaceEndpoint* endpoint = new InterfaceEndpoint(this, id);
+ endpoint->DisableSequenceConsistencyAssertions();
endpoints_[id] = endpoint;
if (encountered_error_)
UpdateEndpointStateMayRemove(endpoint, PEER_ENDPOINT_CLOSED);
@@ -960,6 +961,7 @@ MultiplexRouter::InterfaceEndpoint* MultiplexRouter::FindOrInsertEndpoint(
InterfaceEndpoint* endpoint = FindEndpoint(id);
if (!endpoint) {
endpoint = new InterfaceEndpoint(this, id);
+ endpoint->DisableSequenceConsistencyAssertions();
gab 2017/03/24 15:46:45 That seems like a very large hammer, can we use th
yzshen1 2017/03/24 16:58:09 I am the one who suggested that the check should b
endpoints_[id] = endpoint;
if (inserted)
*inserted = true;

Powered by Google App Engine
This is Rietveld 408576698