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

Issue 2389633003: Throttle GpuWatchdogThread task posting (Closed)

Created:
4 years, 2 months ago by ericrk
Modified:
4 years, 2 months ago
Reviewers:
danakj, vmiura
CC:
chromium-reviews, piman+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Throttle GpuWatchdogThread task posting The GpuWatchdogThread currently allows multiple tasks to disarm the watchdog to be posted in a row, only stopping posting when the watchdog is actually disarmed. This is fairly wasteful, as all but the first task will just early out. This change adjusts the logic so that we only post one disarm task, at a time, blocking future disarm tasks until we have successfully disarmed / rearmed the watchdog. This change also removes the current "volatile bool", and replaces this with a base::subtle::Atomic32, which makes the expectations regarding synchronization more explicit. BUG=612219 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Committed: https://crrev.com/6971ec6d658d06cace0a6d873608127a99367aee Cr-Commit-Position: refs/heads/master@{#422549}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -11 lines) Patch
M gpu/ipc/service/gpu_watchdog_thread.h View 3 chunks +7 lines, -4 lines 0 comments Download
M gpu/ipc/service/gpu_watchdog_thread.cc View 3 chunks +13 lines, -7 lines 0 comments Download

Messages

Total messages: 13 (7 generated)
ericrk
4 years, 2 months ago (2016-10-03 20:09:04 UTC) #3
danakj
LGTM
4 years, 2 months ago (2016-10-03 20:57:50 UTC) #6
vmiura
LGTM
4 years, 2 months ago (2016-10-03 21:06:04 UTC) #7
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/2389633003/1
4 years, 2 months ago (2016-10-03 21:07:20 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 2 months ago (2016-10-03 21:52:33 UTC) #11
commit-bot: I haz the power
4 years, 2 months ago (2016-10-03 21:54:52 UTC) #13
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/6971ec6d658d06cace0a6d873608127a99367aee
Cr-Commit-Position: refs/heads/master@{#422549}

Powered by Google App Engine
This is Rietveld 408576698