DescriptionRevert 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 #
Messages
Total messages: 7 (2 generated)
|