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

Issue 163523003: Add 'startPaused' option to Isolate.spawn*. (Closed)

Created:
6 years, 10 months ago by Lasse Reichstein Nielsen
Modified:
6 years, 10 months ago
Reviewers:
floitsch, kasperl
CC:
reviews_dartlang.org, vm-dev_dartlang.org, siva
Visibility:
Public.

Description

Add 'startPaused' option to Isolate.spawn*. Initial implementation of startPaused in dart2js. R=floitsch@google.com Committed: https://code.google.com/p/dart/source/detail?r=32722

Patch Set 1 #

Patch Set 2 : Update. Add test. #

Patch Set 3 : Actually add test. #

Total comments: 9

Patch Set 4 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+149 lines, -32 lines) Patch
M runtime/lib/isolate_patch.dart View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M sdk/lib/_internal/lib/isolate_helper.dart View 1 2 3 16 chunks +53 lines, -22 lines 0 comments Download
M sdk/lib/_internal/lib/isolate_patch.dart View 1 2 3 3 chunks +5 lines, -4 lines 0 comments Download
M sdk/lib/isolate/isolate.dart View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M tests/isolate/isolate.status View 1 1 chunk +3 lines, -2 lines 0 comments Download
A tests/isolate/start_paused_test.dart View 1 2 3 1 chunk +81 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Lasse Reichstein Nielsen
I made the "startPaused" use the pauseCapability of the isolate itself as marker. If we ...
6 years, 10 months ago (2014-02-14 12:17:49 UTC) #1
kasperl
https://codereview.chromium.org/163523003/diff/50001/sdk/lib/isolate/isolate.dart File sdk/lib/isolate/isolate.dart (right): https://codereview.chromium.org/163523003/diff/50001/sdk/lib/isolate/isolate.dart#newcode62 sdk/lib/isolate/isolate.dart:62: { bool startPaused: false }); Wouldn't 'paused' be enough? ...
6 years, 10 months ago (2014-02-14 13:40:31 UTC) #2
floitsch
LGTM. https://codereview.chromium.org/163523003/diff/50001/sdk/lib/_internal/lib/isolate_helper.dart File sdk/lib/_internal/lib/isolate_helper.dart (right): https://codereview.chromium.org/163523003/diff/50001/sdk/lib/_internal/lib/isolate_helper.dart#newcode745 sdk/lib/_internal/lib/isolate_helper.dart:745: void runStartFunction() { new line before and after ...
6 years, 10 months ago (2014-02-14 14:21:37 UTC) #3
Lasse Reichstein Nielsen
Committed patchset #4 manually as r32722 (presubmit successful).
6 years, 10 months ago (2014-02-17 13:06:14 UTC) #4
Lasse Reichstein Nielsen
6 years, 10 months ago (2014-02-18 08:13:35 UTC) #5
Message was sent while issue was closed.
https://codereview.chromium.org/163523003/diff/50001/sdk/lib/_internal/lib/is...
File sdk/lib/_internal/lib/isolate_helper.dart (right):

https://codereview.chromium.org/163523003/diff/50001/sdk/lib/_internal/lib/is...
sdk/lib/_internal/lib/isolate_helper.dart:745: void runStartFunction() {
On 2014/02/14 14:21:38, floitsch wrote:
> new line before and after nested function.

Done.

https://codereview.chromium.org/163523003/diff/50001/sdk/lib/isolate/isolate....
File sdk/lib/isolate/isolate.dart (right):

https://codereview.chromium.org/163523003/diff/50001/sdk/lib/isolate/isolate....
sdk/lib/isolate/isolate.dart:62: { bool startPaused: false });
Fine with me. Shorter is better.

Powered by Google App Engine
This is Rietveld 408576698