Chromium Code Reviews
Description[Cronet] Make HistogramManager public APIs thread-safe.
CronetEngine.getGlobalMetricsDeltas() exposes the underlying
HistogramManager public APIs on multiple threads, so crashes
can occur if accessed concurrently. The current public APIs
are GetInstance() which simply accesses a thread-safe
LazyInstance, and GetDeltas() which doesn't look thread-safe
so I've added a Lock.
BUG=603028
Committed: https://crrev.com/487de2df8db4a96fd24e6998590ae715142447ec
Cr-Commit-Position: refs/heads/master@{#387009}
Patch Set 1 #
Total comments: 3
Patch Set 2 : don't block in GetDeltas #Patch Set 3 : make lock specific to GetDeltas() #
Messages
Total messages: 15 (6 generated)
|
||||||||||||||||||||||||||||