DescriptionHave NetworkStateNotifier keep untraced ExecutionContext observers.
NetworkStateNotifier keeps track of its observing ExecutionContexts;
following r355234 this is a persistent hash map of weak references
(with Oilpan.) As observers may live on any thread, the first thread
that registers would then create the persistent heap collection on its
heap. This is at odds with the lifetime of NetworkStateNotifier, and
as ExecutionContexts manually manage their observership, revert to using
a HashMap.
R=haraken
BUG=515524
Committed: https://crrev.com/f584f71dcd33f325fe4b86f271dbd6cdbdfc8802
Cr-Commit-Position: refs/heads/master@{#355970}
Patch Set 1 #Patch Set 2 : add comment #Messages
Total messages: 10 (4 generated)
|