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

Issue 23717038: Simplify process exit-code handling on Posix, take 2. (Closed)

Created:
7 years, 3 months ago by Anders Johnsen
Modified:
7 years, 3 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Simplify process exit-code handling on Posix, take 2. As in https://codereview.chromium.org/24024007, except the monitor->Wait is now called in a loop with a guard, to ensure we actually do get notified. Also, now correctly exiting the thread if we have no more child processes, using the initialize/terminate mutex as guard. BUG= R=sgjesse@google.com Committed: https://code.google.com/p/dart/source/detail?r=27380

Patch Set 1 #

Patch Set 2 : Remove now unneeded code in platform_*.cc #

Total comments: 6

Patch Set 3 : Rename and comment the code. #

Total comments: 10

Patch Set 4 : Simplify monitor logic. #

Total comments: 2

Patch Set 5 : Rename and fix mac & android. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+237 lines, -465 lines) Patch
M runtime/bin/platform_android.cc View 1 1 chunk +0 lines, -8 lines 0 comments Download
M runtime/bin/platform_linux.cc View 1 1 chunk +0 lines, -8 lines 0 comments Download
M runtime/bin/platform_macos.cc View 1 1 chunk +0 lines, -9 lines 0 comments Download
M runtime/bin/process_android.cc View 1 2 3 4 6 chunks +79 lines, -147 lines 0 comments Download
M runtime/bin/process_linux.cc View 1 2 3 4 6 chunks +79 lines, -147 lines 0 comments Download
M runtime/bin/process_macos.cc View 1 2 3 4 5 chunks +79 lines, -146 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Anders Johnsen
Please take a look, I've changed how we handle monitor and simplified some of the ...
7 years, 3 months ago (2013-09-09 10:49:00 UTC) #1
Mads Ager (google)
A couple of comments. I can't convince myself that this does not have race conditions. ...
7 years, 3 months ago (2013-09-09 16:35:11 UTC) #2
Anders Johnsen
PTAL. I've updated the linux version only, so let's keep the discussion in that file. ...
7 years, 3 months ago (2013-09-09 17:55:36 UTC) #3
Søren Gjesse
https://codereview.chromium.org/23717038/diff/9001/runtime/bin/process_linux.cc File runtime/bin/process_linux.cc (right): https://codereview.chromium.org/23717038/diff/9001/runtime/bin/process_linux.cc#newcode114 runtime/bin/process_linux.cc:114: // processes to die. That separate thread can then ...
7 years, 3 months ago (2013-09-11 08:23:48 UTC) #4
Anders Johnsen
PTAL https://codereview.chromium.org/23717038/diff/9001/runtime/bin/process_linux.cc File runtime/bin/process_linux.cc (right): https://codereview.chromium.org/23717038/diff/9001/runtime/bin/process_linux.cc#newcode114 runtime/bin/process_linux.cc:114: // processes to die. That separate thread can ...
7 years, 3 months ago (2013-09-11 11:54:52 UTC) #5
Søren Gjesse
LGTM - with the same changes to Android and Mac OS https://codereview.chromium.org/23717038/diff/14001/runtime/bin/process_linux.cc File runtime/bin/process_linux.cc (right): ...
7 years, 3 months ago (2013-09-11 12:10:12 UTC) #6
Anders Johnsen
Thanks, landing. https://codereview.chromium.org/23717038/diff/14001/runtime/bin/process_linux.cc File runtime/bin/process_linux.cc (right): https://codereview.chromium.org/23717038/diff/14001/runtime/bin/process_linux.cc#newcode121 runtime/bin/process_linux.cc:121: static void Increment() { On 2013/09/11 12:10:12, ...
7 years, 3 months ago (2013-09-11 13:05:02 UTC) #7
Anders Johnsen
7 years, 3 months ago (2013-09-11 13:07:04 UTC) #8
Message was sent while issue was closed.
Committed patchset #5 manually as r27380 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698