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

Issue 2801073005: [reland] Do not block in SimpleThread::Start(). (Closed)

Created:
3 years, 8 months ago by fdoray
Modified:
3 years, 8 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, vmpstr+watch_chromium.org, grt+watch_chromium.org, jam, feature-media-reviews_chromium.org, darin-cc_chromium.org, wfh+watch_chromium.org, danakj+watch_chromium.org, kinuko+watch, blink-worker-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[reland] Do not block in SimpleThread::Start(). This CL is identical to https://codereview.chromium.org/2664953004. The race condition that it highlighted in a TaskScheduler test the first time that it landed was fixed by https://codereview.chromium.org/2798373002/ There is no good reason to block in SimpleThread::Start(). In addition to introducing unnecessary latency, blocking in Start() prevents a non-joinable DelegateSimpleThread from being deleted from Run() without external synchronization (it is wrong to delete SimpleThread while Start() is waiting on the |event_| member). BUG= TBR=gab@chromium.org,jam@chromium.org,henrika@chromium.org CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Review-Url: https://codereview.chromium.org/2801073005 Cr-Commit-Position: refs/heads/master@{#462912} Committed: https://chromium.googlesource.com/chromium/src/+/d5acadb2d99dfbbde0cbe251173b566ceb5d3441

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -65 lines) Patch
M base/threading/sequenced_worker_pool.cc View 1 chunk +1 line, -1 line 0 comments Download
M base/threading/simple_thread.h View 4 chunks +19 lines, -15 lines 0 comments Download
M base/threading/simple_thread.cc View 2 chunks +28 lines, -16 lines 0 comments Download
M base/threading/simple_thread_unittest.cc View 2 chunks +2 lines, -13 lines 0 comments Download
M base/threading/thread_restrictions.h View 2 chunks +0 lines, -2 lines 0 comments Download
M base/win/wait_chain_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M content/renderer/categorized_worker_pool.h View 1 chunk +2 lines, -3 lines 0 comments Download
M content/renderer/categorized_worker_pool.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/audio/win/audio_low_latency_output_win.cc View 2 chunks +3 lines, -11 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 22 (15 generated)
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/2801073005/1
3 years, 8 months ago (2017-04-07 12:40:13 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: linux_optional_gpu_tests_rel on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_optional_gpu_tests_rel/builds/7565)
3 years, 8 months ago (2017-04-07 16:22:25 UTC) #10
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/2801073005/1
3 years, 8 months ago (2017-04-07 17:23:21 UTC) #12
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/2801073005/1
3 years, 8 months ago (2017-04-07 17:24:54 UTC) #17
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/d5acadb2d99dfbbde0cbe251173b566ceb5d3441
3 years, 8 months ago (2017-04-07 17:39:23 UTC) #20
Łukasz Anforowicz
A revert of this CL (patchset #1 id:1) has been created in https://codereview.chromium.org/2804393002/ by lukasza@chromium.org. ...
3 years, 8 months ago (2017-04-07 20:48:19 UTC) #21
Łukasz Anforowicz
3 years, 8 months ago (2017-04-07 22:42:03 UTC) #22
Message was sent while issue was closed.
It seems that the speculative worked / that the test failures were indeed caused
by this CL - in the current build [the one that includes the revert - (*)]
browser_tests are all green (and there were random failures in the last) 3
builds).

(*)
https://uberchromegw.corp.google.com/i/chromium.linux/builders/Linux%20Tests%...

Powered by Google App Engine
This is Rietveld 408576698