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

Issue 1129953004: Reland: Lazily initialize MessageLoop for faster thread startup (Closed)

Created:
5 years, 7 months ago by kinuko
Modified:
5 years, 7 months ago
Reviewers:
Takashi Toyoshima, Nico, jam
CC:
chromium-reviews, tim+watch_chromium.org, sadrul, zea+watch_chromium.org, maxbogue+watch_chromium.org, jam, pvalenzuela+watch_chromium.org, plaree+watch_chromium.org, asvitkine+watch_chromium.org, darin-cc_chromium.org, erikwright+watch_chromium.org, maniscalco+watch_chromium.org, Takashi Toyoshima
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland: Lazily initialize MessageLoop for faster thread startup Original review: https://codereview.chromium.org/1011683002/ Reverted because it's suspected for following flakiness issues: http://crbug.com/485157 - Windows race http://crbug.com/485091 - Android ThreadWatcher http://crbug.com/485178 - interactive_ui_tests Menu* tests PS1 is the original patch set that gets reverted. BUG=465458, 485157, 485091, 485178 TBR=jam Committed: https://crrev.com/8b6133a69f16702a32a3c3104630c4d9ac393b7a Cr-Commit-Position: refs/heads/master@{#330329}

Patch Set 1 : (original patch) #

Patch Set 2 : Windows race fix (crbug.com/485157) and ThreadWatcherAndroid fix (crbug.com/485091) #

Total comments: 2

Patch Set 3 : Fix attempt for interactive_ui flakiness (crbug.com/485178) #

Total comments: 3

Patch Set 4 : #

Patch Set 5 : build fix.. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+283 lines, -180 lines) Patch
M base/message_loop/incoming_task_queue.h View 3 chunks +10 lines, -0 lines 0 comments Download
M base/message_loop/incoming_task_queue.cc View 3 chunks +26 lines, -10 lines 0 comments Download
M base/message_loop/message_loop.h View 5 chunks +36 lines, -7 lines 0 comments Download
M base/message_loop/message_loop.cc View 4 chunks +47 lines, -33 lines 0 comments Download
M base/message_loop/message_loop_proxy_impl.h View 1 chunk +3 lines, -0 lines 0 comments Download
M base/message_loop/message_loop_proxy_impl.cc View 1 chunk +6 lines, -1 line 0 comments Download
M base/message_loop/message_pump_perftest.cc View 3 chunks +0 lines, -5 lines 0 comments Download
M base/threading/platform_thread.h View 1 chunk +4 lines, -0 lines 0 comments Download
M base/threading/platform_thread_win.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M base/threading/thread.h View 1 2 3 4 6 chunks +25 lines, -12 lines 0 comments Download
M base/threading/thread.cc View 1 2 3 7 chunks +93 lines, -81 lines 0 comments Download
M base/threading/thread_id_name_manager_unittest.cc View 3 chunks +6 lines, -6 lines 0 comments Download
M base/threading/thread_unittest.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/io_thread.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/io_thread.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/metrics/thread_watcher_android_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/metrics/thread_watcher_unittest.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_registrar_unittest.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/browser_thread_impl.cc View 1 chunk +1 line, -7 lines 0 comments Download
M content/public/browser/browser_thread_delegate.h View 1 chunk +0 lines, -3 lines 0 comments Download
M content/public/test/test_browser_thread.h View 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/test/test_browser_thread.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M net/android/network_change_notifier_android.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M net/test/embedded_test_server/embedded_test_server.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 32 (15 generated)
Takashi Toyoshima
I just look this incidentally. https://codereview.chromium.org/1129953004/diff/40001/base/threading/platform_thread_win.cc File base/threading/platform_thread_win.cc (right): https://codereview.chromium.org/1129953004/diff/40001/base/threading/platform_thread_win.cc#newcode280 base/threading/platform_thread_win.cc:280: out_thread_handle->handle_ = CreateThread( Windows ...
5 years, 7 months ago (2015-05-13 09:16:21 UTC) #3
kinuko
https://codereview.chromium.org/1129953004/diff/40001/base/threading/platform_thread_win.cc File base/threading/platform_thread_win.cc (right): https://codereview.chromium.org/1129953004/diff/40001/base/threading/platform_thread_win.cc#newcode280 base/threading/platform_thread_win.cc:280: out_thread_handle->handle_ = CreateThread( On 2015/05/13 09:16:21, Takashi Toyoshima (chromium) ...
5 years, 7 months ago (2015-05-13 09:24:19 UTC) #4
Takashi Toyoshima
Yeah, and the second solution will also work for pthread_t :)
5 years, 7 months ago (2015-05-13 09:36:25 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1129953004/80001
5 years, 7 months ago (2015-05-13 14:39:20 UTC) #7
kinuko
(Deleting old patch sets PS1 and PS2)
5 years, 7 months ago (2015-05-14 03:41:09 UTC) #11
kinuko
Nico: this is a reland attempt for non-blocking thread startup patch, could you take a ...
5 years, 7 months ago (2015-05-14 03:44:31 UTC) #15
Nico
lgtm if the answer to my second comment is "yes" https://codereview.chromium.org/1129953004/diff/80001/base/threading/thread.cc File base/threading/thread.cc (right): https://codereview.chromium.org/1129953004/diff/80001/base/threading/thread.cc#newcode224 ...
5 years, 7 months ago (2015-05-14 04:02:22 UTC) #16
Takashi Toyoshima
https://codereview.chromium.org/1129953004/diff/100001/base/threading/thread.cc File base/threading/thread.cc (right): https://codereview.chromium.org/1129953004/diff/100001/base/threading/thread.cc#newcode121 base/threading/thread.cc:121: return WaitUntilThreadStarted(); Nico: You may look the difference between ...
5 years, 7 months ago (2015-05-14 04:21:50 UTC) #18
Nico
On 2015/05/14 04:21:50, Takashi Toyoshima (chromium) wrote: > https://codereview.chromium.org/1129953004/diff/100001/base/threading/thread.cc > File base/threading/thread.cc (right): > > ...
5 years, 7 months ago (2015-05-14 04:33:31 UTC) #19
kinuko
Thanks, updated a bit. (I won't land this until next week so any of my ...
5 years, 7 months ago (2015-05-14 08:16:34 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1129953004/160001
5 years, 7 months ago (2015-05-18 04:58:26 UTC) #25
kinuko
On 2015/05/18 04:58:26, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
5 years, 7 months ago (2015-05-18 04:58:58 UTC) #26
commit-bot: I haz the power
Committed patchset #5 (id:160001)
5 years, 7 months ago (2015-05-18 06:10:06 UTC) #27
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/8b6133a69f16702a32a3c3104630c4d9ac393b7a Cr-Commit-Position: refs/heads/master@{#330329}
5 years, 7 months ago (2015-05-18 11:33:43 UTC) #28
Alexander Potapenko
Hi Kinuko, I believe this patch has caused massive race reports on Linux: http://build.chromium.org/p/chromium.memory.fyi/builders/Linux%20TSan%20Tests/builds/4576 I'm ...
5 years, 7 months ago (2015-05-18 13:21:42 UTC) #29
Alexander Potapenko
A revert of this CL (patchset #5 id:160001) has been created in https://codereview.chromium.org/1140363002/ by glider@chromium.org. ...
5 years, 7 months ago (2015-05-18 13:23:18 UTC) #30
kinuko
5 years, 7 months ago (2015-05-18 13:29:32 UTC) #31
Message was sent while issue was closed.
On 2015/05/18 13:23:18, Alexander Potapenko wrote:
> A revert of this CL (patchset #5 id:160001) has been created in
> https://codereview.chromium.org/1140363002/ by
https://mail.google.com/mail/?view=cm&fs=1&tf=1&to=glider@chromium.org.
> 
> The reason for reverting is: Massive data race reports, see
> https://crbug.com/489263.

:( thanks!

Powered by Google App Engine
This is Rietveld 408576698