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 26541005: Avoid threading races on TraceSamplingThread's members. (Closed)

Created:
7 years, 2 months ago by haraken
Modified:
7 years, 2 months ago
CC:
chromium-reviews, dsinclair+watch_chromium.org, erikwright+watch_chromium.org
Visibility:
Public.

Description

Avoid threading races on TraceSamplingThread's members. See a TSAN log in the bug for more details. BUG=305459 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=228889

Patch Set 1 #

Total comments: 2

Patch Set 2 : Addressed comments #

Total comments: 3

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -10 lines) Patch
M base/debug/trace_event_impl.cc View 1 2 3 6 chunks +11 lines, -1 line 4 comments Download
M tools/valgrind/tsan_v2/suppressions.txt View 1 3 chunks +0 lines, -9 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
haraken
PTAL
7 years, 2 months ago (2013-10-09 06:44:40 UTC) #1
Alexander Potapenko
Please remove the suppression and send a tryjob to linux_clang_tsan. Lgtm if ot passes. https://codereview.chromium.org/26541005/diff/1/base/debug/trace_event_impl.cc ...
7 years, 2 months ago (2013-10-09 06:55:32 UTC) #2
haraken
> Please remove the suppression and send a tryjob to linux_clang_tsan. I think I can ...
7 years, 2 months ago (2013-10-09 07:05:06 UTC) #3
dsinclair
https://codereview.chromium.org/26541005/diff/3001/base/debug/trace_event_impl.cc File base/debug/trace_event_impl.cc (right): https://codereview.chromium.org/26541005/diff/3001/base/debug/trace_event_impl.cc#newcode767 base/debug/trace_event_impl.cc:767: void TraceSamplingThread::GetSamples() { Do these other methods need to ...
7 years, 2 months ago (2013-10-09 13:21:07 UTC) #4
haraken
https://codereview.chromium.org/26541005/diff/3001/base/debug/trace_event_impl.cc File base/debug/trace_event_impl.cc (right): https://codereview.chromium.org/26541005/diff/3001/base/debug/trace_event_impl.cc#newcode767 base/debug/trace_event_impl.cc:767: void TraceSamplingThread::GetSamples() { On 2013/10/09 13:21:07, dsinclair wrote: > ...
7 years, 2 months ago (2013-10-09 13:46:19 UTC) #5
haraken
PTAL https://codereview.chromium.org/26541005/diff/3001/base/debug/trace_event_impl.cc File base/debug/trace_event_impl.cc (right): https://codereview.chromium.org/26541005/diff/3001/base/debug/trace_event_impl.cc#newcode767 base/debug/trace_event_impl.cc:767: void TraceSamplingThread::GetSamples() { On 2013/10/09 13:46:20, haraken wrote: ...
7 years, 2 months ago (2013-10-10 01:20:48 UTC) #6
dsinclair
https://codereview.chromium.org/26541005/diff/11001/base/debug/trace_event_impl.cc File base/debug/trace_event_impl.cc (right): https://codereview.chromium.org/26541005/diff/11001/base/debug/trace_event_impl.cc#newcode768 base/debug/trace_event_impl.cc:768: Lock lock_; I think you want AutoLock lock(lock_) ? ...
7 years, 2 months ago (2013-10-10 01:22:47 UTC) #7
haraken
https://codereview.chromium.org/26541005/diff/11001/base/debug/trace_event_impl.cc File base/debug/trace_event_impl.cc (right): https://codereview.chromium.org/26541005/diff/11001/base/debug/trace_event_impl.cc#newcode768 base/debug/trace_event_impl.cc:768: Lock lock_; On 2013/10/10 01:22:48, dsinclair wrote: > I ...
7 years, 2 months ago (2013-10-10 01:36:20 UTC) #8
dsinclair
lgtm
7 years, 2 months ago (2013-10-10 01:48:11 UTC) #9
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
7 years, 2 months ago (2013-10-10 01:49:17 UTC) #10
haraken
nduca: could you take a look as an OWNER?
7 years, 2 months ago (2013-10-10 01:50:54 UTC) #11
haraken
nduca: ping? This is a pretty easy CL :)
7 years, 2 months ago (2013-10-11 16:10:02 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/26541005/19001
7 years, 2 months ago (2013-10-16 05:42:49 UTC) #13
commit-bot: I haz the power
Change committed as 228889
7 years, 2 months ago (2013-10-16 10:38:29 UTC) #14
haraken
hmm, this CL fixed the threading race, but caused a dead lock in HeapChecker tests. ...
7 years, 2 months ago (2013-10-17 01:15:50 UTC) #15
dsinclair
+wangxianzhu Nothing is jumping out at me, adding wangxianzhu as he did a lot of ...
7 years, 2 months ago (2013-10-17 14:28:53 UTC) #16
Xianzhu
https://codereview.chromium.org/26541005/diff/19001/base/debug/trace_event_impl.cc File base/debug/trace_event_impl.cc (right): https://codereview.chromium.org/26541005/diff/19001/base/debug/trace_event_impl.cc#newcode727 base/debug/trace_event_impl.cc:727: cancellation_flag_.reset(new CancellationFlag); It looks weird that CancellationFlag and WaitableEvent ...
7 years, 2 months ago (2013-10-17 16:26:11 UTC) #17
Xianzhu
Sorry just noticed the dead lock issue mentioned in #15. haraken@ can you provide a ...
7 years, 2 months ago (2013-10-17 19:18:34 UTC) #18
haraken
7 years, 2 months ago (2013-10-17 22:58:21 UTC) #19
Message was sent while issue was closed.
On 2013/10/17 19:18:34, Xianzhu wrote:
> Sorry just noticed the dead lock issue mentioned in #15.
> 
> haraken@ can you provide a link to the failure?

Thanks, Xianzhu! This one:
https://code.google.com/p/chromium/issues/detail?id=308273

Powered by Google App Engine
This is Rietveld 408576698