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

Issue 1929543003: Revert of Enforce singleton not allowed behavior for CONTINUE_ON_SHUTDOWN tasks (Closed)

Created:
4 years, 7 months ago by robertshield
Modified:
4 years, 7 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

Revert of Enforce singleton not allowed behavior for CONTINUE_ON_SHUTDOWN tasks (patchset #4 id:100001 of https://codereview.chromium.org/1904273002/ ) Reason for revert: This seems to have broken some android unit tests: I 181.858s run_tests_on_device(01ab756b0330210f) [ RUN ] SupervisedUserServiceTest.ChangesIncludedSessionOnChangedSettings I 181.858s run_tests_on_device(01ab756b0330210f) [INFO:profile_sync_service.cc(2370)] ConfigureDataTypeManager not invoked because backend is not initialized I 181.858s run_tests_on_device(01ab756b0330210f) [FATAL:thread_restrictions.cc(57)] LazyInstance/Singleton is not allowed to be used on this thread. Most likely it's because this thread is not joinable, so AtExitManager may have deleted the object on shutdown, leading to a potential shutdown crash. Original issue's 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 TBR=mef@chromium.org,danakj@chromium.org,gab@chromium.org,robliao@chromium.org,manzagop@chromium.org,rsleevi@chromium.org,pmonette@chromium.org # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=478209 Committed: https://crrev.com/70c6564dbec07c540c6e7125f9c956790279255c Cr-Commit-Position: refs/heads/master@{#390205}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -12 lines) Patch
M base/threading/sequenced_worker_pool.cc View 1 chunk +0 lines, -8 lines 0 comments Download
M net/proxy/dhcpcsvc_init_win.cc View 1 chunk +7 lines, -4 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
robertshield
Created Revert of Enforce singleton not allowed behavior for CONTINUE_ON_SHUTDOWN tasks
4 years, 7 months ago (2016-04-27 21:52:55 UTC) #1
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1929543003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1929543003/1
4 years, 7 months ago (2016-04-27 21:53:15 UTC) #2
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 7 months ago (2016-04-27 21:53:53 UTC) #4
chromium-reviews
lgtm, weird that CQ didn't catch this, racy? Probably found another true but with this ...
4 years, 7 months ago (2016-04-28 12:35:36 UTC) #5
commit-bot: I haz the power
4 years, 7 months ago (2016-04-30 17:13:39 UTC) #6
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/70c6564dbec07c540c6e7125f9c956790279255c
Cr-Commit-Position: refs/heads/master@{#390205}

Powered by Google App Engine
This is Rietveld 408576698