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

Issue 1756393002: Fix some service protocol isolate lifecycle races (Closed)

Created:
4 years, 9 months ago by Cutch
Modified:
4 years, 9 months ago
Reviewers:
turnidge
CC:
reviews_dartlang.org, turnidge, rmacnak, vm-dev_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fix some service protocol isolate life cycle races that were discovered by the Flutter testing tool. Fixes #25902 Issue #1 Assuming --pause-isolates-on-start, there is a window of time after an isolate is made runnable and before it pauses at the first message that we say the isolate is "resumed". - Fix issue #1 by claiming the isolate is paused on start if it will eventually pause on start. - Also, handle the resume command for this state by clearing the 'should pause on start' bit. Issue #2 Before an isolate is made runnable we say the isolate is "resumed". - Fix issue #2 by introducing a new pause event "None". R=turnidge@google.com Committed: https://github.com/dart-lang/sdk/commit/49dc7e557b74085d60c9b26cf806d3b73899972e

Patch Set 1 #

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -4 lines) Patch
M runtime/observatory/lib/src/app/application.dart View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/observatory/lib/src/elements/debugger.dart View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M runtime/observatory/lib/src/elements/isolate_summary.html View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M runtime/observatory/lib/src/service/object.dart View 1 2 3 chunks +4 lines, -1 line 0 comments Download
M runtime/vm/isolate.cc View 1 2 1 chunk +7 lines, -1 line 0 comments Download
M runtime/vm/service.cc View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
M runtime/vm/service/service.md View 1 2 3 2 chunks +5 lines, -1 line 0 comments Download
M runtime/vm/service_event.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/service_event.cc View 1 2 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (5 generated)
Cutch
Todd, This is somewhat exploratory. Let's discuss this in the morning. John
4 years, 9 months ago (2016-03-02 23:34:29 UTC) #3
turnidge
lgtm but let's consider changing the event name. Currently leaning to ServiceEvent.kNone... https://codereview.chromium.org/1756393002/diff/20001/runtime/observatory/lib/src/app/application.dart File runtime/observatory/lib/src/app/application.dart ...
4 years, 9 months ago (2016-03-03 17:15:01 UTC) #5
Cutch
https://codereview.chromium.org/1756393002/diff/20001/runtime/observatory/lib/src/app/application.dart File runtime/observatory/lib/src/app/application.dart (right): https://codereview.chromium.org/1756393002/diff/20001/runtime/observatory/lib/src/app/application.dart#newcode112 runtime/observatory/lib/src/app/application.dart:112: case ServiceEvent.kPauseUntilRunnable: On 2016/03/03 17:15:01, turnidge wrote: > We ...
4 years, 9 months ago (2016-03-03 19:22:00 UTC) #6
Cutch
4 years, 9 months ago (2016-03-03 19:30:47 UTC) #9
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
49dc7e557b74085d60c9b26cf806d3b73899972e (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698