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

Issue 8995008: Fix issue 906 (Closed)

Created:
9 years ago by Søren Gjesse
Modified:
9 years ago
Reviewers:
turnidge, siva, Ivan Posva
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove the need for OS::Sleep by changing the synchronization #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -17 lines) Patch
M runtime/vm/dart_api_impl_test.cc View 1 7 chunks +56 lines, -17 lines 1 comment Download

Messages

Total messages: 5 (0 generated)
Søren Gjesse
I am still wondering why the OS::Sleep(5) is still required for the test to not ...
9 years ago (2011-12-19 16:19:53 UTC) #1
Ivan Posva
LGTM -ip http://codereview.chromium.org/8995008/diff/1/runtime/vm/dart_api_impl_test.cc File runtime/vm/dart_api_impl_test.cc (right): http://codereview.chromium.org/8995008/diff/1/runtime/vm/dart_api_impl_test.cc#newcode2898 runtime/vm/dart_api_impl_test.cc:2898: // Tell the other thread that we ...
9 years ago (2011-12-19 16:27:46 UTC) #2
siva
Søren, The deadlock you were observing without the OS::Sleep(5) is because in this case three ...
9 years ago (2011-12-19 22:02:12 UTC) #3
Søren Gjesse
Siva, thanks for figuring out that main of cause have to be entered before starting ...
9 years ago (2011-12-20 09:21:26 UTC) #4
Ivan Posva
9 years ago (2011-12-21 08:31:16 UTC) #5
http://codereview.chromium.org/8995008/diff/5001/runtime/vm/dart_api_impl_tes...
File runtime/vm/dart_api_impl_test.cc (right):

http://codereview.chromium.org/8995008/diff/5001/runtime/vm/dart_api_impl_tes...
runtime/vm/dart_api_impl_test.cc:3091: for (int i = 0; i < 3; i++) {
I would prefer if we spaced the interrupts out a bit.

For example:
OS::Sleep(i * 1);

While at it can you also get rid of the magic value 3 by using a constant?

Powered by Google App Engine
This is Rietveld 408576698