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

Issue 20163004: base: Re-apply WeakPtr support for SequencedWorkerPools, fixing deadlock (Closed)

Created:
7 years, 5 months ago by tommycli
Modified:
7 years, 5 months ago
CC:
chromium-reviews, vandebo (ex-Chrome), sadrul, amit, gavinp+memory_chromium.org, dcaiafa+watch_chromium.org, jam, joi+watch-content_chromium.org, darin-cc_chromium.org, erikwright+watch_chromium.org, wez+watch_chromium.org, sanjeevr, feature-media-reviews_chromium.org, rmsousa+watch_chromium.org, weitaosu+watch_chromium.org, sergeyu+watch_chromium.org, jamiewalch+watch_chromium.org, hclam+watch_chromium.org, Lei Zhang, garykac+watch_chromium.org, tommycli, lambroslambrou+watch_chromium.org, Greg Billock, alexeypa+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

base: Re-apply WeakPtr support for SequencedWorkerPools, fixing deadlock This reverts the revert found here: https://codereview.chromium.org/19882002 It also fixes the deadlock that caused the revert, reported here: http://crbug.com/261448 Patchset 1 is simply what was originally committed (and reverted). Subsequent patchsets show the fix of the deadlock problem. BUG=165590 TBR=darin Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=213906

Patch Set 1 #

Patch Set 2 : Fix deadlock issue. #

Total comments: 4

Patch Set 3 : Change order back. #

Patch Set 4 : Add back death test threadsafe mode flag that got lost. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+388 lines, -296 lines) Patch
M base/base.gyp View 1 chunk +0 lines, -1 line 0 comments Download
M base/memory/weak_ptr.h View 2 chunks +3 lines, -3 lines 0 comments Download
M base/memory/weak_ptr.cc View 2 1 chunk +6 lines, -6 lines 0 comments Download
M base/message_loop/message_pump_io_ios.h View 1 chunk +1 line, -0 lines 0 comments Download
M base/sequence_checker.h View 3 chunks +2 lines, -14 lines 0 comments Download
M base/sequence_checker_impl.h View 1 chunk +18 lines, -24 lines 0 comments Download
M base/sequence_checker_impl.cc View 1 chunk +27 lines, -12 lines 0 comments Download
D base/sequence_checker_impl_unittest.cc View 1 chunk +0 lines, -218 lines 0 comments Download
M base/sequence_checker_unittest.cc View 1 2 3 1 chunk +324 lines, -14 lines 0 comments Download
M base/threading/sequenced_worker_pool.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/storage_monitor/storage_monitor.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/media/webmediaplayer_ms.h View 1 chunk +1 line, -0 lines 0 comments Download
M remoting/host/audio_capturer_win.h View 1 chunk +1 line, -0 lines 0 comments Download
M tools/valgrind/gtest_exclude/base_unittests.gtest.txt View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
tommycli
ajwong: I think this patch fixes the issue you described here: http://crbug.com/261448 Patchset 1 is ...
7 years, 5 months ago (2013-07-25 15:57:09 UTC) #1
tommycli
+akalin, darin: This patch may fix the deadlock issue with the sequenced weak pointers. Review ...
7 years, 5 months ago (2013-07-25 19:27:52 UTC) #2
akalin
https://codereview.chromium.org/20163004/diff/9001/base/memory/weak_ptr.cc File base/memory/weak_ptr.cc (right): https://codereview.chromium.org/20163004/diff/9001/base/memory/weak_ptr.cc#newcode20 base/memory/weak_ptr.cc:20: DCHECK(HasOneRef() || sequence_checker_.CalledOnValidSequencedThread()) On 2013/07/25 15:57:09, tommycli wrote: > ...
7 years, 5 months ago (2013-07-25 19:36:37 UTC) #3
tommycli
akalin: Addressed your comments. I'm 'pretty sure' my change will fix the deadlock issue - ...
7 years, 5 months ago (2013-07-25 19:54:59 UTC) #4
akalin
LGTM but please revert quickly if it causes problems again.
7 years, 5 months ago (2013-07-25 19:59:19 UTC) #5
tommycli
Sounds good. TBRing darin because he previously LGed it. I send to CQ now.
7 years, 5 months ago (2013-07-25 20:32:36 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommycli@chromium.org/20163004/25001
7 years, 5 months ago (2013-07-25 20:57:59 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommycli@chromium.org/20163004/25001
7 years, 5 months ago (2013-07-26 02:47:05 UTC) #8
commit-bot: I haz the power
7 years, 5 months ago (2013-07-26 14:24:00 UTC) #9
Message was sent while issue was closed.
Change committed as 213906

Powered by Google App Engine
This is Rietveld 408576698