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

Issue 1072473002: Speculative patch: Make it safe to delete the TQM inside a Task (Closed)

Created:
5 years, 8 months ago by alex clarke (OOO till 29th)
Modified:
5 years, 8 months ago
Reviewers:
Sami
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Speculative patch: Make it safe to delete the TQM inside a Task We are seeing null pointer dereferences inside UpdateWorkQueues called from DoWork. My theory is this is caused by the RenderThreadImpl getting deleted inside a task which causes the TQM to get deleted while DoWork is executing. This patch makes it safe to delete the TQM inside a task. BUG=474461 Committed: https://crrev.com/18aa2c5d15db2b890fa583a063efcff94a4caa1f Cr-Commit-Position: refs/heads/master@{#324251}

Patch Set 1 #

Total comments: 4

Patch Set 2 : responding to feedback #

Total comments: 2

Patch Set 3 : Added some comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -3 lines) Patch
M content/child/scheduler/task_queue_manager.h View 1 3 chunks +9 lines, -1 line 0 comments Download
M content/child/scheduler/task_queue_manager.cc View 1 2 4 chunks +13 lines, -2 lines 0 comments Download
M content/child/scheduler/task_queue_manager_unittest.cc View 1 2 chunks +19 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (7 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1072473002/1
5 years, 8 months ago (2015-04-08 13:00:14 UTC) #2
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/54805)
5 years, 8 months ago (2015-04-08 13:11:08 UTC) #5
Sami
This looks pretty tidy. https://codereview.chromium.org/1072473002/diff/1/content/child/scheduler/task_queue_manager.cc File content/child/scheduler/task_queue_manager.cc (right): https://codereview.chromium.org/1072473002/diff/1/content/child/scheduler/task_queue_manager.cc#newcode604 content/child/scheduler/task_queue_manager.cc:604: // Detect if the TaskQueueManager ...
5 years, 8 months ago (2015-04-08 14:24:05 UTC) #6
alex clarke (OOO till 29th)
PTAL https://codereview.chromium.org/1072473002/diff/1/content/child/scheduler/task_queue_manager.cc File content/child/scheduler/task_queue_manager.cc (right): https://codereview.chromium.org/1072473002/diff/1/content/child/scheduler/task_queue_manager.cc#newcode604 content/child/scheduler/task_queue_manager.cc:604: // Detect if the TaskQueueManager got deleted during ...
5 years, 8 months ago (2015-04-08 14:33:05 UTC) #7
Sami
Great, lgtm. https://codereview.chromium.org/1072473002/diff/20001/content/child/scheduler/task_queue_manager.cc File content/child/scheduler/task_queue_manager.cc (right): https://codereview.chromium.org/1072473002/diff/20001/content/child/scheduler/task_queue_manager.cc#newcode648 content/child/scheduler/task_queue_manager.cc:648: // Detect if the TaskQueueManager just got ...
5 years, 8 months ago (2015-04-08 14:45:56 UTC) #8
alex clarke (OOO till 29th)
https://codereview.chromium.org/1072473002/diff/20001/content/child/scheduler/task_queue_manager.cc File content/child/scheduler/task_queue_manager.cc (right): https://codereview.chromium.org/1072473002/diff/20001/content/child/scheduler/task_queue_manager.cc#newcode648 content/child/scheduler/task_queue_manager.cc:648: // Detect if the TaskQueueManager just got deleted. On ...
5 years, 8 months ago (2015-04-08 14:59:40 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1072473002/40001
5 years, 8 months ago (2015-04-08 15:00:05 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1072473002/40001
5 years, 8 months ago (2015-04-08 16:53:53 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 8 months ago (2015-04-08 17:40:42 UTC) #16
commit-bot: I haz the power
5 years, 8 months ago (2015-04-08 17:41:45 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/18aa2c5d15db2b890fa583a063efcff94a4caa1f
Cr-Commit-Position: refs/heads/master@{#324251}

Powered by Google App Engine
This is Rietveld 408576698