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

Issue 2159283002: exo: Fix crash in out-of-order destruction of Gamepad (Closed)

Created:
4 years, 5 months ago by denniskempin
Modified:
4 years, 5 months ago
Reviewers:
reveman
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

exo: Fix crash in out-of-order destruction of Gamepad Destroying the gaming input resource will destroy the gamepad polling thread, which causes the Gamepad destructor to access an invalid reference to the task runner of that thread. This CL changes the raw pointer to a ref counted pointer so we won't destroy the task runner prematurely. BUG=620977 Committed: https://crrev.com/a3633143505b30713e83baabfa7767877bf79788 Cr-Commit-Position: refs/heads/master@{#406327}

Patch Set 1 #

Total comments: 2

Patch Set 2 : only use refptr for storing the task runner #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M components/exo/gamepad.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 11 (3 generated)
denniskempin
4 years, 5 months ago (2016-07-19 17:04:14 UTC) #2
reveman
https://codereview.chromium.org/2159283002/diff/1/components/exo/gamepad.h File components/exo/gamepad.h (right): https://codereview.chromium.org/2159283002/diff/1/components/exo/gamepad.h#newcode33 components/exo/gamepad.h:33: scoped_refptr<base::SingleThreadTaskRunner> polling_task_runner); This just adds ref-count churn. Passing a ...
4 years, 5 months ago (2016-07-19 17:16:53 UTC) #3
denniskempin
that... actually makes this change even simpler. Done.
4 years, 5 months ago (2016-07-19 17:24:53 UTC) #4
reveman
lgtm
4 years, 5 months ago (2016-07-19 17:33:14 UTC) #5
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/2159283002/20001
4 years, 5 months ago (2016-07-19 17:54:00 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 5 months ago (2016-07-19 18:36:24 UTC) #8
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-19 18:36:33 UTC) #9
commit-bot: I haz the power
4 years, 5 months ago (2016-07-19 18:39:35 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/a3633143505b30713e83baabfa7767877bf79788
Cr-Commit-Position: refs/heads/master@{#406327}

Powered by Google App Engine
This is Rietveld 408576698