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

Issue 1720743002: fix race: this kCacheSize is probably not meant to be static (Closed)

Created:
4 years, 10 months ago by mtklein_C
Modified:
4 years, 10 months ago
Reviewers:
robertphillips
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

fix race: this kCacheSize is probably not meant to be static TSAN sees us racing to intialize the static const kCacheSize. This static const value depends on the runtime value image->getSize(), so there is a race to set it. I think this is unintentionally copy-paste from the other tests that use a constant kCacheSize. It's weird to intialize a constant based on the first call to test_internal_purge(), though luckily we're always calling it with same sized images today. See these TSAN failures: https://uberchromegw.corp.google.com/i/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-TSAN/builds/4937 https://uberchromegw.corp.google.com/i/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-TSAN/builds/4940/steps/dm/logs/stdio TBR=robertphillips@google.com BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1720743002 Committed: https://skia.googlesource.com/skia/+/03762fea75b0fe34ac0375407b83b6ae52e453b4

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -3 lines) Patch
M tests/ImageFilterCacheTest.cpp View 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 9 (5 generated)
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1720743002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1720743002/1
4 years, 10 months ago (2016-02-21 21:15:08 UTC) #4
mtklein_C
4 years, 10 months ago (2016-02-21 21:21:25 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://skia.googlesource.com/skia/+/03762fea75b0fe34ac0375407b83b6ae52e453b4
4 years, 10 months ago (2016-02-21 21:36:54 UTC) #8
robertphillips
4 years, 10 months ago (2016-02-22 12:39:47 UTC) #9
Message was sent while issue was closed.
lgtm - it was not intended to be static.

Powered by Google App Engine
This is Rietveld 408576698