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

Issue 6837028: In ProfilerSignalHandler ensure that thread we are trying to sample locked the isolate. (Closed)

Created:
9 years, 8 months ago by Vyacheslav Egorov (Chromium)
Modified:
9 years, 7 months ago
Reviewers:
Vitaly Repeshko
CC:
v8-dev
Visibility:
Public.

Description

In ProfilerSignalHandler ensure that thread we are trying to sample locked the isolate. BUG=http://crbug.com/77725 Committed: http://code.google.com/p/v8/source/detail?r=7612

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -0 lines) Patch
M src/platform-freebsd.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M src/platform-linux.cc View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Vyacheslav Egorov (Chromium)
9 years, 8 months ago (2011-04-13 17:27:27 UTC) #1
Vitaly Repeshko
9 years, 8 months ago (2011-04-13 19:32:02 UTC) #2
LGTM

I agree with your analysis here. See my comment on the bug. I think we should
also guard against the case when it's not us who's sending the signal. We can do
that by checking sampler->IsProfiling() next to sampler->IsActive().

In the future, when the locker/unlocker support for multiple isolates is
improved, this locked-by-current check should not be necessary, because the
thread that unlocked an isolate should have no current isolate.

Powered by Google App Engine
This is Rietveld 408576698