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

Issue 2321073004: [profiler] Allow thread-safe access to add/remove code event observers. (Closed)

Created:
4 years, 3 months ago by alph
Modified:
4 years, 2 months ago
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Allow thread-safe access to add/remove code event observers. BUG=406277 Committed: https://crrev.com/1e937f6676ea5d714a56d59451d808ee41f6a98d Cr-Commit-Position: refs/heads/master@{#39853}

Patch Set 1 #

Total comments: 2

Patch Set 2 : addressing the comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -1 line) Patch
M src/code-events.h View 1 3 chunks +6 lines, -1 line 0 comments Download
M src/profiler/profiler-listener.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M src/profiler/profiler-listener.cc View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (9 generated)
alph
ptal
4 years, 3 months ago (2016-09-09 09:45:08 UTC) #4
jochen (gone - plz use gerrit)
https://codereview.chromium.org/2321073004/diff/1/src/profiler/profiler-listener.h File src/profiler/profiler-listener.h (right): https://codereview.chromium.org/2321073004/diff/1/src/profiler/profiler-listener.h#newcode83 src/profiler/profiler-listener.h:83: base::LockGuard<base::Mutex> guard(&mutex_); shouldn't you lock before checking observers_?
4 years, 3 months ago (2016-09-09 13:21:09 UTC) #8
alph
https://codereview.chromium.org/2321073004/diff/1/src/profiler/profiler-listener.h File src/profiler/profiler-listener.h (right): https://codereview.chromium.org/2321073004/diff/1/src/profiler/profiler-listener.h#newcode83 src/profiler/profiler-listener.h:83: base::LockGuard<base::Mutex> guard(&mutex_); On 2016/09/09 13:21:09, jochen wrote: > shouldn't ...
4 years, 3 months ago (2016-09-09 21:03:30 UTC) #9
jochen (gone - plz use gerrit)
that just says that modifying elements is safe, however, in AddObserver you also modify the ...
4 years, 3 months ago (2016-09-12 10:01:42 UTC) #10
alph
On 2016/09/12 10:01:42, jochen wrote: > that just says that modifying elements is safe, however, ...
4 years, 3 months ago (2016-09-12 18:16:58 UTC) #11
alph
On 2016/09/12 10:01:42, jochen wrote: > that just says that modifying elements is safe, however, ...
4 years, 3 months ago (2016-09-12 18:16:58 UTC) #12
jochen (gone - plz use gerrit)
lgtm
4 years, 3 months ago (2016-09-14 08:10:17 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2321073004/20001
4 years, 2 months ago (2016-09-29 07:54:17 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 2 months ago (2016-09-29 08:24:05 UTC) #17
commit-bot: I haz the power
4 years, 2 months ago (2016-09-29 08:24:15 UTC) #19
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/1e937f6676ea5d714a56d59451d808ee41f6a98d
Cr-Commit-Position: refs/heads/master@{#39853}

Powered by Google App Engine
This is Rietveld 408576698