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

Issue 1936703002: Ignore CpuProfiler::SetIdle call when not profiling. (Closed)

Created:
4 years, 7 months ago by dgozman
Modified:
4 years, 7 months ago
Reviewers:
alph, Yang
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

Ignore CpuProfiler::SetIdle call when not profiling. It truned out we can enter nested message loop and call SetIdle from inside the compilation in some obscure situations. To not whitelist all the possible StateTag values, we'd better ignore this call when not profiling as it has no effect anyway. This patch also reverts DCHECK change from https://codereview.chromium.org/1922703005/. BUG=none LOG=N Committed: https://crrev.com/eda8ea168895f4a976e1f30c267d443ed0277917 Cr-Commit-Position: refs/heads/master@{#35946}

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -2 lines) Patch
M src/api.cc View 1 chunk +4 lines, -2 lines 3 comments Download

Messages

Total messages: 14 (4 generated)
dgozman
Hi, Could you please a look? Unfortunately, previous approach didn't work so I have to ...
4 years, 7 months ago (2016-04-29 21:52:21 UTC) #2
adamk
If it's not simple, I think that I'm not the right V8 OWNER here, adding ...
4 years, 7 months ago (2016-04-29 21:56:24 UTC) #4
alph
https://codereview.chromium.org/1936703002/diff/1/src/api.cc File src/api.cc (right): https://codereview.chromium.org/1936703002/diff/1/src/api.cc#newcode8356 src/api.cc:8356: if (!profiler->is_profiling()) return; Sorry, didn't get how it helps. ...
4 years, 7 months ago (2016-04-30 00:03:08 UTC) #5
dgozman
https://codereview.chromium.org/1936703002/diff/1/src/api.cc File src/api.cc (right): https://codereview.chromium.org/1936703002/diff/1/src/api.cc#newcode8356 src/api.cc:8356: if (!profiler->is_profiling()) return; On 2016/04/30 00:03:08, alph wrote: > ...
4 years, 7 months ago (2016-04-30 00:10:40 UTC) #6
alph
https://codereview.chromium.org/1936703002/diff/1/src/api.cc File src/api.cc (right): https://codereview.chromium.org/1936703002/diff/1/src/api.cc#newcode8356 src/api.cc:8356: if (!profiler->is_profiling()) return; On 2016/04/30 00:10:39, dgozman wrote: > ...
4 years, 7 months ago (2016-04-30 00:29:20 UTC) #7
alph
ok, let's leave it this way. So assumptions are: 1. SetIdle does not have any ...
4 years, 7 months ago (2016-04-30 01:04:01 UTC) #8
Yang
lgtm
4 years, 7 months ago (2016-05-02 10:21:04 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1936703002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1936703002/1
4 years, 7 months ago (2016-05-02 17:06:04 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 7 months ago (2016-05-02 17:32:08 UTC) #12
commit-bot: I haz the power
4 years, 7 months ago (2016-05-02 17:33:37 UTC) #14
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/eda8ea168895f4a976e1f30c267d443ed0277917
Cr-Commit-Position: refs/heads/master@{#35946}

Powered by Google App Engine
This is Rietveld 408576698