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

Issue 13040003: Fix ToolsSanityTest.DataRace under TSan v1. (Closed)

Created:
7 years, 9 months ago by Alexander Potapenko
Modified:
7 years, 9 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org
Visibility:
Public.

Description

Fix ToolsSanityTest.DataRace under TSan v1 by allocating the shared variable on the heap instead of stack. For some reason the test interferes with others and the race on the stack variable gets ignored. BUG=223016 TBR=thestig,darin Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=190002

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -3 lines) Patch
M base/tools_sanity_unittest.cc View 1 1 chunk +4 lines, -3 lines 1 comment Download

Messages

Total messages: 4 (0 generated)
Alexander Potapenko
TBR
7 years, 9 months ago (2013-03-23 11:25:00 UTC) #1
Alexander Potapenko
Committed patchset #4 manually as r190002 (presubmit successful).
7 years, 9 months ago (2013-03-23 11:28:22 UTC) #2
darin (slow to review)
OK, LGTM
7 years, 9 months ago (2013-03-23 14:26:43 UTC) #3
Lei Zhang
7 years, 9 months ago (2013-03-23 15:33:14 UTC) #4
Message was sent while issue was closed.
lgtm

https://codereview.chromium.org/13040003/diff/8002/base/tools_sanity_unittest.cc
File base/tools_sanity_unittest.cc (right):

https://codereview.chromium.org/13040003/diff/8002/base/tools_sanity_unittest...
base/tools_sanity_unittest.cc:250: bool *shared = new bool(false);
small nit: bool*

Powered by Google App Engine
This is Rietveld 408576698