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

Issue 1419593004: Avoid hang in OncePtr test with --threads 1 (Closed)

Created:
5 years, 1 month ago by Kimmo Kinnunen
Modified:
5 years, 1 month ago
Reviewers:
herb_g, mtklein
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Avoid hang in OncePtr test with --threads 1 Avoid hang in OncePtr test when using "dm --threads 1". The test will hang the threads until sk_num_cores() threads have run the code. This requires that sk_num_cores() threads to be run in parallel, which the global thread pool will not do if the thread count is smaller than sk_num_cores(). BUG=skia: Committed: https://skia.googlesource.com/skia/+/7f97a76b805b4cc05f83a965063767f0256ea270

Patch Set 1 #

Total comments: 5

Patch Set 2 : address review comments #

Total comments: 1

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -2 lines) Patch
M src/core/SkTaskGroup.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/core/SkTaskGroup.cpp View 1 2 chunks +7 lines, -0 lines 0 comments Download
M tests/OncePtrTest.cpp View 1 2 1 chunk +4 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 13 (3 generated)
Kimmo Kinnunen
Just a strawman, feel free to reformulate.
5 years, 1 month ago (2015-10-26 10:09:08 UTC) #2
mtklein
https://codereview.chromium.org/1419593004/diff/1/tests/OncePtrTest.cpp File tests/OncePtrTest.cpp (right): https://codereview.chromium.org/1419593004/diff/1/tests/OncePtrTest.cpp#newcode26 tests/OncePtrTest.cpp:26: SkAtomic<int> force_a_race(sk_num_cores()); Does this work correctly if we change ...
5 years, 1 month ago (2015-10-26 13:36:37 UTC) #3
herb_g
https://codereview.chromium.org/1419593004/diff/1/tests/OncePtrTest.cpp File tests/OncePtrTest.cpp (right): https://codereview.chromium.org/1419593004/diff/1/tests/OncePtrTest.cpp#newcode26 tests/OncePtrTest.cpp:26: SkAtomic<int> force_a_race(sk_num_cores()); On 2015/10/26 13:36:37, mtklein wrote: > Does ...
5 years, 1 month ago (2015-10-26 14:32:56 UTC) #4
mtklein
On 2015/10/26 14:32:56, herb_g wrote: > https://codereview.chromium.org/1419593004/diff/1/tests/OncePtrTest.cpp > File tests/OncePtrTest.cpp (right): > > https://codereview.chromium.org/1419593004/diff/1/tests/OncePtrTest.cpp#newcode26 > ...
5 years, 1 month ago (2015-10-26 14:50:55 UTC) #5
Kimmo Kinnunen
https://codereview.chromium.org/1419593004/diff/1/tests/OncePtrTest.cpp File tests/OncePtrTest.cpp (right): https://codereview.chromium.org/1419593004/diff/1/tests/OncePtrTest.cpp#newcode26 tests/OncePtrTest.cpp:26: SkAtomic<int> force_a_race(sk_num_cores()); On 2015/10/26 13:36:37, mtklein wrote: > Does ...
5 years, 1 month ago (2015-10-27 06:44:42 UTC) #6
Kimmo Kinnunen
https://codereview.chromium.org/1419593004/diff/20001/tests/OncePtrTest.cpp File tests/OncePtrTest.cpp (right): https://codereview.chromium.org/1419593004/diff/20001/tests/OncePtrTest.cpp#newcode9 tests/OncePtrTest.cpp:9: #include "SkCommonFlags.h" forgot to remove this..
5 years, 1 month ago (2015-10-27 14:23:12 UTC) #8
Kimmo Kinnunen
So, ping..
5 years, 1 month ago (2015-11-04 11:10:40 UTC) #9
mtklein
lgtm
5 years, 1 month ago (2015-11-04 14:18:30 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1419593004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1419593004/40001
5 years, 1 month ago (2015-11-04 14:18:37 UTC) #12
commit-bot: I haz the power
5 years, 1 month ago (2015-11-04 14:30:21 UTC) #13
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://skia.googlesource.com/skia/+/7f97a76b805b4cc05f83a965063767f0256ea270

Powered by Google App Engine
This is Rietveld 408576698