Chromium Code Reviews
DescriptionChange base class of V8SamplingProfiler to AsyncEnabledStateObserver.
Currently V8SamplingProfiler is a subclass of EnabledStateObserver, however
EnabledStateObserver is not thread safe becuase OnTraceLog{Dis,En}abled get
called in different thread which will become a use-after-free case when observer
gets deleted in another thread.
This patch changes base class of V8SamplingProfiler to AsyncEnabledStateObserver
since AsyncEnabledStateObserver will post these two calls to the same thread
where observer was added.
BUG=611027
Committed: https://crrev.com/3d1573d4df84687881d4cfe8e8dd6391b99f28e2
Cr-Commit-Position: refs/heads/master@{#393260}
Patch Set 1 #Patch Set 2 : #
Total comments: 4
Patch Set 3 : Address alph's comments #
Messages
Total messages: 13 (4 generated)
|
||||||||||||||||||||||||||||