|
|
DescriptionRedirectNonUINonIOBrowserThreads to TaskScheduler by default on trunk.
The addition of AssertWaitAllowed in BrowserMainLoop::ShutdownThreadsAndCleanUp()
is required because joining is a "wait" operation. It wasn't required
before because PlatformThread::Join (platform_thread_posix.cc) actually still
does AssertIOAllowed() instead of AssertWaitAllowed() for legacy reasons
(and I/O is allowed in shutdown already). But this CL enables the redirection
which uses a WaitableEvent to mimic thread join (ref. BrowserThreadImpl::StopRedirectionOfThreadID():
waiting on the exact same set of tasks it did prior to redirection).
BUG=653916
Review-Url: https://codereview.chromium.org/2690183002
Cr-Commit-Position: refs/heads/master@{#461481}
Committed: https://chromium.googlesource.com/chromium/src/+/b6d0c9a06ab573af760763fcd7ecf76ae2c87695
Patch Set 1 #Patch Set 2 : Allow wait in ShutdownThreadsAndCleanUp() #
Total comments: 1
Patch Set 3 : update dependency #
Depends on Patchset: Dependent Patchsets: Messages
Total messages: 46 (35 generated)
The CQ bit was checked by gab@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by gab@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_...)
The CQ bit was checked by gab@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
The CQ bit was checked by gab@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
gab@chromium.org changed reviewers: + jam@chromium.org, rkaplow@chromium.org
John PTaL @Rob for fieldtrial_testing_config.json Thanks https://codereview.chromium.org/2690183002/diff/20001/content/browser/browser... File content/browser/browser_main_loop.cc (right): https://codereview.chromium.org/2690183002/diff/20001/content/browser/browser... content/browser/browser_main_loop.cc:1274: base::ThreadRestrictions::ScopedAllowWait allow_wait_for_join; This is the only addition, the rest of the diff is merely side-effects indentation and re-formatting).
Description was changed from ========== RedirectNonUINonIOBrowserThreads to TaskScheduler by default on trunk. BUG= ========== to ========== RedirectNonUINonIOBrowserThreads to TaskScheduler by default on trunk. BUG=653916 ==========
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
lgtm
sorry for the delay, can you reroute this? I'm busy today and Monday.
The CQ bit was checked by gab@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
lgtm
Description was changed from ========== RedirectNonUINonIOBrowserThreads to TaskScheduler by default on trunk. BUG=653916 ========== to ========== RedirectNonUINonIOBrowserThreads to TaskScheduler by default on trunk. The addition of AssertWaitAllowed in BrowserMainLoop::ShutdownThreadsAndCleanUp() is required because joining is a "wait" operation. It wasn't required before because PlatformThread::Join (platform_thread_posix.cc) actually still does AssertIOAllowed() instead of AssertWaitAllowed() for legacy reasons (and I/O is allowed in shutdown already). BUG=653916 ==========
Description was changed from ========== RedirectNonUINonIOBrowserThreads to TaskScheduler by default on trunk. The addition of AssertWaitAllowed in BrowserMainLoop::ShutdownThreadsAndCleanUp() is required because joining is a "wait" operation. It wasn't required before because PlatformThread::Join (platform_thread_posix.cc) actually still does AssertIOAllowed() instead of AssertWaitAllowed() for legacy reasons (and I/O is allowed in shutdown already). BUG=653916 ========== to ========== RedirectNonUINonIOBrowserThreads to TaskScheduler by default on trunk. The addition of AssertWaitAllowed in BrowserMainLoop::ShutdownThreadsAndCleanUp() is required because joining is a "wait" operation. It wasn't required before because PlatformThread::Join (platform_thread_posix.cc) actually still does AssertIOAllowed() instead of AssertWaitAllowed() for legacy reasons (and I/O is allowed in shutdown already). But this CL enables the redirection which uses a WaitableEvent to mimic thread join (waiting on the exact same set of tasks as it did prior to redirection). BUG=653916 ==========
Description was changed from ========== RedirectNonUINonIOBrowserThreads to TaskScheduler by default on trunk. The addition of AssertWaitAllowed in BrowserMainLoop::ShutdownThreadsAndCleanUp() is required because joining is a "wait" operation. It wasn't required before because PlatformThread::Join (platform_thread_posix.cc) actually still does AssertIOAllowed() instead of AssertWaitAllowed() for legacy reasons (and I/O is allowed in shutdown already). But this CL enables the redirection which uses a WaitableEvent to mimic thread join (waiting on the exact same set of tasks as it did prior to redirection). BUG=653916 ========== to ========== RedirectNonUINonIOBrowserThreads to TaskScheduler by default on trunk. The addition of AssertWaitAllowed in BrowserMainLoop::ShutdownThreadsAndCleanUp() is required because joining is a "wait" operation. It wasn't required before because PlatformThread::Join (platform_thread_posix.cc) actually still does AssertIOAllowed() instead of AssertWaitAllowed() for legacy reasons (and I/O is allowed in shutdown already). But this CL enables the redirection which uses a WaitableEvent to mimic thread join (waiting on the exact same set of tasks it did prior to redirection). BUG=653916 ==========
Description was changed from ========== RedirectNonUINonIOBrowserThreads to TaskScheduler by default on trunk. The addition of AssertWaitAllowed in BrowserMainLoop::ShutdownThreadsAndCleanUp() is required because joining is a "wait" operation. It wasn't required before because PlatformThread::Join (platform_thread_posix.cc) actually still does AssertIOAllowed() instead of AssertWaitAllowed() for legacy reasons (and I/O is allowed in shutdown already). But this CL enables the redirection which uses a WaitableEvent to mimic thread join (waiting on the exact same set of tasks it did prior to redirection). BUG=653916 ========== to ========== RedirectNonUINonIOBrowserThreads to TaskScheduler by default on trunk. The addition of AssertWaitAllowed in BrowserMainLoop::ShutdownThreadsAndCleanUp() is required because joining is a "wait" operation. It wasn't required before because PlatformThread::Join (platform_thread_posix.cc) actually still does AssertIOAllowed() instead of AssertWaitAllowed() for legacy reasons (and I/O is allowed in shutdown already). But this CL enables the redirection which uses a WaitableEvent to mimic thread join (ref. BrowserThreadImpl::StopRedirectionOfThreadID(): waiting on the exact same set of tasks it did prior to redirection). BUG=653916 ==========
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by gab@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from rkaplow@chromium.org Link to the patchset: https://codereview.chromium.org/2690183002/#ps40001 (title: "update dependency")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_...)
The CQ bit was checked by gab@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_...)
The CQ bit was checked by gab@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch. Bot data: {"patchset_id": 40001, "attempt_start_ts": 1491240144377380, "parent_rev": "e9db587014de87a149f709a8e1e94a3d5708c835", "commit_rev": "b6d0c9a06ab573af760763fcd7ecf76ae2c87695"}
Message was sent while issue was closed.
Description was changed from ========== RedirectNonUINonIOBrowserThreads to TaskScheduler by default on trunk. The addition of AssertWaitAllowed in BrowserMainLoop::ShutdownThreadsAndCleanUp() is required because joining is a "wait" operation. It wasn't required before because PlatformThread::Join (platform_thread_posix.cc) actually still does AssertIOAllowed() instead of AssertWaitAllowed() for legacy reasons (and I/O is allowed in shutdown already). But this CL enables the redirection which uses a WaitableEvent to mimic thread join (ref. BrowserThreadImpl::StopRedirectionOfThreadID(): waiting on the exact same set of tasks it did prior to redirection). BUG=653916 ========== to ========== RedirectNonUINonIOBrowserThreads to TaskScheduler by default on trunk. The addition of AssertWaitAllowed in BrowserMainLoop::ShutdownThreadsAndCleanUp() is required because joining is a "wait" operation. It wasn't required before because PlatformThread::Join (platform_thread_posix.cc) actually still does AssertIOAllowed() instead of AssertWaitAllowed() for legacy reasons (and I/O is allowed in shutdown already). But this CL enables the redirection which uses a WaitableEvent to mimic thread join (ref. BrowserThreadImpl::StopRedirectionOfThreadID(): waiting on the exact same set of tasks it did prior to redirection). BUG=653916 Review-Url: https://codereview.chromium.org/2690183002 Cr-Commit-Position: refs/heads/master@{#461481} Committed: https://chromium.googlesource.com/chromium/src/+/b6d0c9a06ab573af760763fcd7ec... ==========
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/b6d0c9a06ab573af760763fcd7ec...
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.chromium.org/2791933004/ by robliao@chromium.org. The reason for reverting is: Breaks some DBUS code that requests for a message loop.
Message was sent while issue was closed.
Description was changed from ========== RedirectNonUINonIOBrowserThreads to TaskScheduler by default on trunk. The addition of AssertWaitAllowed in BrowserMainLoop::ShutdownThreadsAndCleanUp() is required because joining is a "wait" operation. It wasn't required before because PlatformThread::Join (platform_thread_posix.cc) actually still does AssertIOAllowed() instead of AssertWaitAllowed() for legacy reasons (and I/O is allowed in shutdown already). But this CL enables the redirection which uses a WaitableEvent to mimic thread join (ref. BrowserThreadImpl::StopRedirectionOfThreadID(): waiting on the exact same set of tasks it did prior to redirection). BUG=653916 Review-Url: https://codereview.chromium.org/2690183002 Cr-Commit-Position: refs/heads/master@{#461481} Committed: https://chromium.googlesource.com/chromium/src/+/b6d0c9a06ab573af760763fcd7ec... ========== to ========== RedirectNonUINonIOBrowserThreads to TaskScheduler by default on trunk. The addition of AssertWaitAllowed in BrowserMainLoop::ShutdownThreadsAndCleanUp() is required because joining is a "wait" operation. It wasn't required before because PlatformThread::Join (platform_thread_posix.cc) actually still does AssertIOAllowed() instead of AssertWaitAllowed() for legacy reasons (and I/O is allowed in shutdown already). But this CL enables the redirection which uses a WaitableEvent to mimic thread join (ref. BrowserThreadImpl::StopRedirectionOfThreadID(): waiting on the exact same set of tasks it did prior to redirection). BUG=653916 Review-Url: https://codereview.chromium.org/2690183002 Cr-Commit-Position: refs/heads/master@{#461481} Committed: https://chromium.googlesource.com/chromium/src/+/b6d0c9a06ab573af760763fcd7ec... ========== |