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

Issue 1904273002: Enforce singleton not allowed behavior for CONTINUE_ON_SHUTDOWN tasks (Closed)

Created:
4 years, 8 months ago by Patrick Monette
Modified:
4 years, 5 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, manzagop (departed)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Enforce singleton not allowed behavior for CONTINUE_ON_SHUTDOWN tasks CONTINUE_ON_SHUTDOWN means the thread running the task will not be joined on shutdown and may not have a valid singleton/lazy_instance at that moment. Also made DhcpcsvcInitSingleton explicitly leaky to avoid the AssertSingletonAllowed() dcheck. BUG=478209 Committed: https://crrev.com/de7e9038663d69356e558764d5a7b215e8b49b5b Committed: https://crrev.com/68e03e7337bc3252f874bcf9e50a5830a54eecb0 Committed: https://crrev.com/7eebe86636dc5f9bbe9c7bec367e99569894d34a Cr-Original-Original-Commit-Position: refs/heads/master@{#390125} Cr-Original-Commit-Position: refs/heads/master@{#406053} Cr-Commit-Position: refs/heads/master@{#406293}

Patch Set 1 : #

Total comments: 12

Patch Set 2 : Comments #

Total comments: 1

Patch Set 3 : Rebase #

Patch Set 4 : Gab comment #

Patch Set 5 : Rebase #

Patch Set 6 : Made a Singleton leaky in test_support_android.cc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -23 lines) Patch
M base/test/test_support_android.cc View 1 2 3 4 5 1 chunk +15 lines, -16 lines 0 comments Download
M base/threading/sequenced_worker_pool.cc View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M net/proxy/dhcpcsvc_init_win.cc View 1 2 3 1 chunk +4 lines, -7 lines 0 comments Download

Messages

Total messages: 63 (25 generated)
Patrick Monette
mef@ PTAL at net/ change. jam@ PTAL at sequenced_worker_pool.cc
4 years, 8 months ago (2016-04-21 23:07:43 UTC) #5
jam
On 2016/04/21 23:07:43, Patrick Monette wrote: > mef@ PTAL at net/ change. > jam@ PTAL ...
4 years, 8 months ago (2016-04-22 15:51:15 UTC) #6
Patrick Monette
Hey danakj@ I'm trying to find an owner for base/threading/sequenced_worker_pool.cc. PTAL or please help me ...
4 years, 8 months ago (2016-04-22 16:11:05 UTC) #8
danakj
+gab,robliao any thoughts?
4 years, 8 months ago (2016-04-25 22:10:28 UTC) #11
robliao
This currently seems reasonable to me in my reading of the situation. A task that ...
4 years, 8 months ago (2016-04-25 23:03:30 UTC) #12
robliao
https://codereview.chromium.org/1904273002/diff/20001/net/proxy/dhcpcsvc_init_win.cc File net/proxy/dhcpcsvc_init_win.cc (right): https://codereview.chromium.org/1904273002/diff/20001/net/proxy/dhcpcsvc_init_win.cc#newcode24 net/proxy/dhcpcsvc_init_win.cc:24: // Worker pool threads that use the DHCP API ...
4 years, 8 months ago (2016-04-25 23:05:25 UTC) #13
gab
@danakj: yes, this makes sense. We are in fact planning to add this exact logic ...
4 years, 8 months ago (2016-04-26 11:53:18 UTC) #14
manzagop (departed)
https://codereview.chromium.org/1904273002/diff/20001/base/threading/sequenced_worker_pool.cc File base/threading/sequenced_worker_pool.cc (right): https://codereview.chromium.org/1904273002/diff/20001/base/threading/sequenced_worker_pool.cc#newcode251 base/threading/sequenced_worker_pool.cc:251: // that implements base::Singleton. This will trigger a DCHECK ...
4 years, 8 months ago (2016-04-26 13:13:44 UTC) #16
Patrick Monette
PTAnL https://codereview.chromium.org/1904273002/diff/20001/base/threading/sequenced_worker_pool.cc File base/threading/sequenced_worker_pool.cc (right): https://codereview.chromium.org/1904273002/diff/20001/base/threading/sequenced_worker_pool.cc#newcode251 base/threading/sequenced_worker_pool.cc:251: // that implements base::Singleton. This will trigger a ...
4 years, 8 months ago (2016-04-26 19:05:28 UTC) #17
Patrick Monette
https://codereview.chromium.org/1904273002/diff/20001/net/proxy/dhcpcsvc_init_win.cc File net/proxy/dhcpcsvc_init_win.cc (left): https://codereview.chromium.org/1904273002/diff/20001/net/proxy/dhcpcsvc_init_win.cc#oldcode23 net/proxy/dhcpcsvc_init_win.cc:23: ~DhcpcsvcInitSingleton() { On 2016/04/26 19:05:28, Patrick Monette wrote: > ...
4 years, 8 months ago (2016-04-26 19:18:39 UTC) #18
gab
Sorry for the noise, still lgtm w/ request to undo one of my previous comments... ...
4 years, 8 months ago (2016-04-26 20:11:47 UTC) #19
Patrick Monette
mef@ & danakj@ PTAL as I need owners review
4 years, 8 months ago (2016-04-26 20:45:37 UTC) #22
robliao
lgtm
4 years, 7 months ago (2016-04-27 00:59:54 UTC) #23
danakj
LGTM
4 years, 7 months ago (2016-04-27 01:59:11 UTC) #24
Patrick Monette
rsleevi@ PTAL. Need owners review for dhcpcsvc_init_win.cc
4 years, 7 months ago (2016-04-27 16:00:44 UTC) #26
mef
net/ lgtm
4 years, 7 months ago (2016-04-27 16:28:45 UTC) #27
Patrick Monette
Thanks mef@. I won't be needing your review anymore Ryan!
4 years, 7 months ago (2016-04-27 16:51:39 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1904273002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1904273002/100001
4 years, 7 months ago (2016-04-27 16:52:18 UTC) #31
commit-bot: I haz the power
Committed patchset #4 (id:100001)
4 years, 7 months ago (2016-04-27 18:06:20 UTC) #33
robertshield
A revert of this CL (patchset #4 id:100001) has been created in https://codereview.chromium.org/1929543003/ by robertshield@chromium.org. ...
4 years, 7 months ago (2016-04-27 21:52:54 UTC) #34
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/de7e9038663d69356e558764d5a7b215e8b49b5b Cr-Commit-Position: refs/heads/master@{#390125}
4 years, 7 months ago (2016-04-30 17:11:14 UTC) #35
gab
So I just realized this code isn't in the codebase as I expected, looks like ...
4 years, 6 months ago (2016-06-22 17:40:11 UTC) #37
Patrick Monette
It got reverted here https://chromium.googlesource.com/chromium/src/+/70c6564dbec07c540c6e7125f9c956790279255c It broke some android tests and I didn't have the ...
4 years, 6 months ago (2016-06-22 17:59:58 UTC) #38
gab
On 2016/06/22 17:59:58, Patrick Monette wrote: > It got reverted here > https://chromium.googlesource.com/chromium/src/+/70c6564dbec07c540c6e7125f9c956790279255c > > ...
4 years, 6 months ago (2016-06-22 20:47:59 UTC) #39
gab
On 2016/06/22 20:47:59, gab wrote: > On 2016/06/22 17:59:58, Patrick Monette wrote: > > It ...
4 years, 5 months ago (2016-07-07 14:51:55 UTC) #40
chromium-reviews
Sure. Looking into it! On Thu, Jul 7, 2016 at 10:51 AM <gab@chromium.org> wrote: > ...
4 years, 5 months ago (2016-07-07 17:06:05 UTC) #41
chromium-reviews
Any luck? Maybe try re-landing and get fresh logs? On Thu, Jul 7, 2016 at ...
4 years, 5 months ago (2016-07-18 15:51:42 UTC) #42
Patrick Monette
Yup relanding this now.
4 years, 5 months ago (2016-07-18 17:27:37 UTC) #44
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/1904273002/120001
4 years, 5 months ago (2016-07-18 17:28:30 UTC) #47
commit-bot: I haz the power
Committed patchset #5 (id:120001)
4 years, 5 months ago (2016-07-18 19:05:55 UTC) #49
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-18 19:06:11 UTC) #50
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/68e03e7337bc3252f874bcf9e50a5830a54eecb0 Cr-Commit-Position: refs/heads/master@{#406053}
4 years, 5 months ago (2016-07-18 19:08:05 UTC) #52
grt (UTC plus 2)
A revert of this CL (patchset #5 id:120001) has been created in https://codereview.chromium.org/2163613002/ by grt@chromium.org. ...
4 years, 5 months ago (2016-07-19 08:29:04 UTC) #53
Patrick Monette
On 2016/07/19 08:29:04, grt (UTC plus 2) wrote: > A revert of this CL (patchset ...
4 years, 5 months ago (2016-07-19 15:32:06 UTC) #55
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/1904273002/140001
4 years, 5 months ago (2016-07-19 15:32:40 UTC) #58
commit-bot: I haz the power
Committed patchset #6 (id:140001)
4 years, 5 months ago (2016-07-19 16:41:24 UTC) #60
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-19 16:41:46 UTC) #61
commit-bot: I haz the power
4 years, 5 months ago (2016-07-19 16:42:54 UTC) #63
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/7eebe86636dc5f9bbe9c7bec367e99569894d34a
Cr-Commit-Position: refs/heads/master@{#406293}

Powered by Google App Engine
This is Rietveld 408576698