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

Issue 2804393002: Revert of [reland] Do not block in SimpleThread::Start(). (Closed)

Created:
3 years, 8 months ago by Łukasz Anforowicz
Modified:
3 years, 8 months ago
Reviewers:
gab, jam, fdoray
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

Revert of [reland] Do not block in SimpleThread::Start(). (patchset #1 id:1 of https://codereview.chromium.org/2801073005/ ) Reason for revert: Speculatively reverting hoping to resolve lots of random failures on 2 bots, starting with the builds below: https://uberchromegw.corp.google.com/i/chromium.chromiumos/builders/Linux%20ChromiumOS%20Tests%20%28dbg%29%281%29/builds/24574 https://uberchromegw.corp.google.com/i/chromium.linux/builders/Linux%20Tests%20%28dbg%29%281%29%2832%29/builds/40019 Original issue's 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 TBR=gab@chromium.org,jam@chromium.org,henrika@chromium.org,fdoray@chromium.org # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG= Review-Url: https://codereview.chromium.org/2804393002 Cr-Commit-Position: refs/heads/master@{#462998} Committed: https://chromium.googlesource.com/chromium/src/+/6710dbd5124741db004176153c87c609435e7788

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 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 +15 lines, -19 lines 0 comments Download
M base/threading/simple_thread.cc View 2 chunks +16 lines, -28 lines 0 comments Download
M base/threading/simple_thread_unittest.cc View 2 chunks +14 lines, -3 lines 0 comments Download
M base/threading/thread_restrictions.h View 2 chunks +2 lines, -0 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 +3 lines, -2 lines 0 comments Download
M content/renderer/categorized_worker_pool.cc View 1 chunk +0 lines, -5 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 +11 lines, -3 lines 0 comments Download

Messages

Total messages: 9 (5 generated)
Łukasz Anforowicz
Created Revert of [reland] Do not block in SimpleThread::Start().
3 years, 8 months ago (2017-04-07 20:48:20 UTC) #2
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/2804393002/1
3 years, 8 months ago (2017-04-07 20:48:59 UTC) #3
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/6710dbd5124741db004176153c87c609435e7788
3 years, 8 months ago (2017-04-07 20:59:01 UTC) #6
Charlie Reis
3 years, 8 months ago (2017-04-07 23:45:19 UTC) #7
Message was sent while issue was closed.
Thanks for reverting, lukasza@!  This did turn all 3 of the bots below green:
Linux Tests (dbg)(1)(32)
Linux Tests (dbg)(1)
Linux ChromiumOS Tests (dbg)(1)

A large number of random tests on these bots had been timing out before the
revert, across the following steps:
content_browsertests
extensions_browsertests
interactive_ui_tests
sync_integration_tests
browser_tests

fdoray@: I don't see a bug associated with any of these CLs or reverts.  Can you
file one before attempting to land it again?  It's useful to have a central
place to keep track of info like this.  Thanks!

Powered by Google App Engine
This is Rietveld 408576698