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

Issue 1900473002: Get rid of UnsafeCurrent in Sampler (Closed)

Created:
4 years, 8 months ago by lpy
Modified:
4 years, 8 months ago
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Get rid of UnsafeCurrent in Sampler Currently we are using UnsafeCurrent in async signal handler to acquire the isolate of VM thread, but we want to get rid of that since it prevents V8 from being thread agnostic. This patch replaces UnsafeCurrent with a static map, where we store a map of samplers for threads, and makes it accessible by signal handler. BUG=v8:4889 LOG=n Committed: https://crrev.com/ff7e6defffe4cd2feb1336a333b5220f0d3cdcf6 Cr-Commit-Position: refs/heads/master@{#35722}

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 3

Patch Set 5 : #

Total comments: 3

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+188 lines, -24 lines) Patch
M src/isolate.h View 1 chunk +0 lines, -8 lines 0 comments Download
M src/profiler/sampler.h View 2 chunks +8 lines, -0 lines 0 comments Download
M src/profiler/sampler.cc View 1 2 3 4 5 15 chunks +180 lines, -16 lines 0 comments Download

Messages

Total messages: 37 (13 generated)
lpy
4 years, 8 months ago (2016-04-19 06:26:03 UTC) #1
lpy
alph, fmeawad, jochen and yang. PTAL. https://codereview.chromium.org/1900473002/diff/60001/src/profiler/sampler.cc File src/profiler/sampler.cc (right): https://codereview.chromium.org/1900473002/diff/60001/src/profiler/sampler.cc#newcode250 src/profiler/sampler.cc:250: USE(atomic_->Value()); This is ...
4 years, 8 months ago (2016-04-20 21:16:46 UTC) #3
fmeawad
https://codereview.chromium.org/1900473002/diff/60001/src/profiler/sampler.cc File src/profiler/sampler.cc (right): https://codereview.chromium.org/1900473002/diff/60001/src/profiler/sampler.cc#newcode249 src/profiler/sampler.cc:249: // Use Acquire_Load to make TSAN happy. Instead of ...
4 years, 8 months ago (2016-04-20 23:17:12 UTC) #4
lpy
I updated the comment. PTAL. https://codereview.chromium.org/1900473002/diff/60001/src/profiler/sampler.cc File src/profiler/sampler.cc (right): https://codereview.chromium.org/1900473002/diff/60001/src/profiler/sampler.cc#newcode249 src/profiler/sampler.cc:249: // Use Acquire_Load to ...
4 years, 8 months ago (2016-04-21 06:02:59 UTC) #5
jochen (gone - plz use gerrit)
lgtm with updated comment https://codereview.chromium.org/1900473002/diff/80001/src/profiler/sampler.cc File src/profiler/sampler.cc (right): https://codereview.chromium.org/1900473002/diff/80001/src/profiler/sampler.cc#newcode250 src/profiler/sampler.cc:250: // TSAN recognizes the atomic ...
4 years, 8 months ago (2016-04-21 14:44:24 UTC) #6
alph
https://codereview.chromium.org/1900473002/diff/80001/src/profiler/sampler.cc File src/profiler/sampler.cc (right): https://codereview.chromium.org/1900473002/diff/80001/src/profiler/sampler.cc#newcode250 src/profiler/sampler.cc:250: // TSAN recognizes the atomic variable acting as guard. ...
4 years, 8 months ago (2016-04-21 16:21:29 UTC) #7
Michael Lippautz
https://codereview.chromium.org/1900473002/diff/80001/src/profiler/sampler.cc File src/profiler/sampler.cc (right): https://codereview.chromium.org/1900473002/diff/80001/src/profiler/sampler.cc#newcode250 src/profiler/sampler.cc:250: // TSAN recognizes the atomic variable acting as guard. ...
4 years, 8 months ago (2016-04-21 16:34:18 UTC) #9
lpy
On 2016/04/21 16:34:18, Michael Lippautz wrote: > https://codereview.chromium.org/1900473002/diff/80001/src/profiler/sampler.cc > File src/profiler/sampler.cc (right): > > https://codereview.chromium.org/1900473002/diff/80001/src/profiler/sampler.cc#newcode250 ...
4 years, 8 months ago (2016-04-21 18:08:59 UTC) #10
alph
lgtm
4 years, 8 months ago (2016-04-21 23:01:16 UTC) #11
fmeawad
lgtm
4 years, 8 months ago (2016-04-21 23:02:29 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1900473002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1900473002/100001
4 years, 8 months ago (2016-04-21 23:17:34 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux_nodcheck_rel_ng on tryserver.v8 (JOB_TIMED_OUT, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_nodcheck_rel_ng/builds/565)
4 years, 8 months ago (2016-04-22 01:20:49 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1900473002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1900473002/100001
4 years, 8 months ago (2016-04-22 03:10:22 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux_arm64_rel_ng on tryserver.v8 (JOB_TIMED_OUT, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_arm64_rel_ng/builds/557) v8_mac_rel_ng on tryserver.v8 (JOB_TIMED_OUT, ...
4 years, 8 months ago (2016-04-22 05:12:46 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1900473002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1900473002/100001
4 years, 8 months ago (2016-04-22 05:20:25 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1900473002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1900473002/100001
4 years, 8 months ago (2016-04-22 06:50:24 UTC) #26
lpy
On 2016/04/22 06:50:24, commit-bot: I haz the power wrote: > CQ is trying da patch. ...
4 years, 8 months ago (2016-04-22 06:52:12 UTC) #27
Michael Achenbach
Filed http://crbug.com/605846 Might take a few hours until folks are around for fixing this. Is ...
4 years, 8 months ago (2016-04-22 06:54:50 UTC) #28
lpy
On 2016/04/22 06:54:50, Michael Achenbach wrote: > Filed http://crbug.com/605846 > > Might take a few ...
4 years, 8 months ago (2016-04-22 06:56:43 UTC) #29
Michael Achenbach
Please upload a new (empty) patchset and queue that one (see http://crbug.com/605846). Sorry for the ...
4 years, 8 months ago (2016-04-22 07:31:55 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: v8_mac_rel_ng on tryserver.v8 (JOB_TIMED_OUT, http://build.chromium.org/p/tryserver.v8/builders/v8_mac_rel_ng/builds/570)
4 years, 8 months ago (2016-04-22 09:24:54 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1900473002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1900473002/100001
4 years, 8 months ago (2016-04-22 10:06:55 UTC) #34
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 8 months ago (2016-04-22 10:53:10 UTC) #35
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 19:15:23 UTC) #37
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/ff7e6defffe4cd2feb1336a333b5220f0d3cdcf6
Cr-Commit-Position: refs/heads/master@{#35722}

Powered by Google App Engine
This is Rietveld 408576698