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

Issue 2566423002: Fix SharedSampler to cope correctly with zero-thread processes. (Closed)

Created:
4 years ago by Wez
Modified:
4 years ago
Reviewers:
stanisc, ncarter (slow)
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix SharedSampler to cope correctly with zero-thread processes. SharedSampler previously assumed that all processes have at least one thread, which appears no longer to be the case for the Windows operating system's "System and Compressed Memory" process. BUG=673175 Committed: https://crrev.com/8c4cfd4e82b4465305d60d3830bcbae50076f004 Cr-Commit-Position: refs/heads/master@{#438322}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix >= to > #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -3 lines) Patch
M chrome/browser/task_manager/sampling/shared_sampler_win.cc View 1 1 chunk +5 lines, -3 lines 0 comments Download

Messages

Total messages: 23 (14 generated)
Wez
PTAL - minimal fix suitable for merge.
4 years ago (2016-12-13 05:49:09 UTC) #4
stanisc
https://codereview.chromium.org/2566423002/diff/1/chrome/browser/task_manager/sampling/shared_sampler_win.cc File chrome/browser/task_manager/sampling/shared_sampler_win.cc (right): https://codereview.chromium.org/2566423002/diff/1/chrome/browser/task_manager/sampling/shared_sampler_win.cc#newcode460 chrome/browser/task_manager/sampling/shared_sampler_win.cc:460: if (pi->NumberOfThreads >= 0 && This is to prevent ...
4 years ago (2016-12-13 17:12:20 UTC) #7
Wez
https://codereview.chromium.org/2566423002/diff/1/chrome/browser/task_manager/sampling/shared_sampler_win.cc File chrome/browser/task_manager/sampling/shared_sampler_win.cc (right): https://codereview.chromium.org/2566423002/diff/1/chrome/browser/task_manager/sampling/shared_sampler_win.cc#newcode460 chrome/browser/task_manager/sampling/shared_sampler_win.cc:460: if (pi->NumberOfThreads >= 0 && On 2016/12/13 17:12:20, stanisc ...
4 years ago (2016-12-13 21:30:48 UTC) #12
stanisc
LGTM You still need to get approval from a Task Manager code OWNER - either ...
4 years ago (2016-12-13 21:45:24 UTC) #13
Wez
+nick@ for TaskManager OWNERS
4 years ago (2016-12-13 22:35:53 UTC) #15
ncarter (slow)
lgtm
4 years ago (2016-12-13 22:41:01 UTC) #16
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/2566423002/20001
4 years ago (2016-12-13 22:51:20 UTC) #18
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-12-13 22:58:00 UTC) #21
commit-bot: I haz the power
4 years ago (2016-12-13 22:59:48 UTC) #23
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/8c4cfd4e82b4465305d60d3830bcbae50076f004
Cr-Commit-Position: refs/heads/master@{#438322}

Powered by Google App Engine
This is Rietveld 408576698