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

Issue 190013005: Add Isolate.kill(). (Closed)

Created:
6 years, 9 months ago by Lasse Reichstein Nielsen
Modified:
6 years, 8 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Add Isolate.kill(). This sends a kill signal to the isolate, which is allowed to terminate the isolate as soon as possible, and at the latest before the next event. R=ajohnsen@google.com, floitsch@google.com, sgjesse@google.com Committed: https://code.google.com/p/dart/source/detail?r=34234 Committed: https://code.google.com/p/dart/source/detail?r=34960

Patch Set 1 #

Patch Set 2 : Address comment, add tests #

Patch Set 3 : Changed naming and meaning of priorities #

Total comments: 3

Patch Set 4 : Update tests, status #

Total comments: 10

Patch Set 5 : Rename OUT_OF_BAND to IMMEDIATE #

Patch Set 6 : More renaming. Status update. #

Patch Set 7 : Reapply after revert. #

Patch Set 8 : Fix test kill2_test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+210 lines, -117 lines) Patch
M sdk/lib/_internal/lib/isolate_helper.dart View 1 2 3 4 5 6 7 chunks +83 lines, -12 lines 0 comments Download
M sdk/lib/isolate/isolate.dart View 1 2 3 4 4 chunks +54 lines, -19 lines 0 comments Download
M tests/isolate/isolate.status View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
A + tests/isolate/kill2_test.dart View 1 2 3 4 5 6 7 1 chunk +11 lines, -16 lines 0 comments Download
A + tests/isolate/kill3_test.dart View 1 2 1 chunk +11 lines, -16 lines 0 comments Download
A + tests/isolate/kill_self_test.dart View 1 2 3 4 2 chunks +19 lines, -25 lines 0 comments Download
A + tests/isolate/kill_test.dart View 1 2 3 4 1 chunk +13 lines, -18 lines 0 comments Download
M tests/isolate/ping_pause_test.dart View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M tests/isolate/ping_test.dart View 1 2 3 4 5 6 2 chunks +14 lines, -10 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
Lasse Reichstein Nielsen
Is my assumption, that control messages only happen at the event loop top, correct?
6 years, 9 months ago (2014-03-07 07:22:10 UTC) #1
floitsch
I think we will need different types like for ping. webworkers can be killed in ...
6 years, 9 months ago (2014-03-07 19:38:53 UTC) #2
Lasse Reichstein Nielsen
This sounds like the same times as the ping. Suggests reusing the same constants.
6 years, 9 months ago (2014-03-12 10:31:39 UTC) #3
floitsch
On 2014/03/12 10:31:39, Lasse Reichstein Nielsen wrote: > This sounds like the same times as ...
6 years, 9 months ago (2014-03-12 11:45:05 UTC) #4
Lasse Reichstein Nielsen
PTAL. Names for priorities of ping/kill now generic, and bad. Suggestions welcome.
6 years, 9 months ago (2014-03-13 15:01:50 UTC) #5
floitsch
LGTM after we have found better names for the priorities.
6 years, 9 months ago (2014-03-13 15:52:11 UTC) #6
Lasse Reichstein Nielsen
PTAL
6 years, 9 months ago (2014-03-14 12:32:20 UTC) #7
floitsch
LGTM. Ask others if they have better names, but I could live with these. https://codereview.chromium.org/190013005/diff/40001/sdk/lib/_internal/lib/isolate_helper.dart ...
6 years, 9 months ago (2014-03-14 13:01:44 UTC) #8
Lasse Reichstein Nielsen
+sgjesse, +ajohnsen: Any suggestions for better names for the contants? https://codereview.chromium.org/190013005/diff/40001/sdk/lib/_internal/lib/isolate_helper.dart File sdk/lib/_internal/lib/isolate_helper.dart (right): https://codereview.chromium.org/190013005/diff/40001/sdk/lib/_internal/lib/isolate_helper.dart#newcode374 ...
6 years, 9 months ago (2014-03-19 13:07:50 UTC) #9
Anders Johnsen
lgtm https://codereview.chromium.org/190013005/diff/60001/sdk/lib/isolate/isolate.dart File sdk/lib/isolate/isolate.dart (right): https://codereview.chromium.org/190013005/diff/60001/sdk/lib/isolate/isolate.dart#newcode33 sdk/lib/isolate/isolate.dart:33: static const int OUT_OF_BAND = 0; IMMEDIATE? People ...
6 years, 9 months ago (2014-03-19 13:15:34 UTC) #10
Søren Gjesse
lgtm https://codereview.chromium.org/190013005/diff/60001/sdk/lib/isolate/isolate.dart File sdk/lib/isolate/isolate.dart (right): https://codereview.chromium.org/190013005/diff/60001/sdk/lib/isolate/isolate.dart#newcode33 sdk/lib/isolate/isolate.dart:33: static const int OUT_OF_BAND = 0; On 2014/03/19 ...
6 years, 9 months ago (2014-03-20 08:08:32 UTC) #11
Anders Johnsen
https://codereview.chromium.org/190013005/diff/60001/sdk/lib/isolate/isolate.dart File sdk/lib/isolate/isolate.dart (right): https://codereview.chromium.org/190013005/diff/60001/sdk/lib/isolate/isolate.dart#newcode37 sdk/lib/isolate/isolate.dart:37: static const int AS_EVENT = 2; On 2014/03/20 08:08:33, ...
6 years, 9 months ago (2014-03-20 08:48:00 UTC) #12
Lasse Reichstein Nielsen
https://codereview.chromium.org/190013005/diff/60001/sdk/lib/isolate/isolate.dart File sdk/lib/isolate/isolate.dart (right): https://codereview.chromium.org/190013005/diff/60001/sdk/lib/isolate/isolate.dart#newcode33 sdk/lib/isolate/isolate.dart:33: static const int OUT_OF_BAND = 0; I tried ASAP, ...
6 years, 9 months ago (2014-03-20 13:12:33 UTC) #13
Lasse Reichstein Nielsen
Committed patchset #6 manually as r34234 (presubmit successful).
6 years, 9 months ago (2014-03-21 08:56:19 UTC) #14
Lasse Reichstein Nielsen
Commit was reverted. Trying again with fixes.
6 years, 8 months ago (2014-04-10 12:21:14 UTC) #15
Lasse Reichstein Nielsen
Very simple change to test. PTAL
6 years, 8 months ago (2014-04-10 12:32:43 UTC) #16
Anders Johnsen
diff to previous commit, LGTM
6 years, 8 months ago (2014-04-10 12:40:13 UTC) #17
Lasse Reichstein Nielsen
6 years, 8 months ago (2014-04-11 07:23:01 UTC) #18
Message was sent while issue was closed.
Committed patchset #8 manually as r34960 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698