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

Issue 3010503002: Avoid to run dart code during paused_on_exit (Closed)

Created:
3 years, 3 months ago by cbernaschina
Modified:
3 years, 3 months ago
Reviewers:
rmacnak, siva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Avoid to run dart code during paused_on_exit When a MessageHandler gets to the paused_on_exist state it should just handle service events. If ports are open though, at the next message the isolate will consider itself still alive and handle any kind of request. The MessageHandler is now checking for its paused_on_exit state and avoid to handle normal messages in that state. Closes https://github.com/dart-lang/sdk/issues/30555 R=asiva@google.com Committed: https://github.com/dart-lang/sdk/commit/20066b625a723d0bca4a13afe408e9d6b1442e0e

Patch Set 1 #

Patch Set 2 : Add test #

Patch Set 3 : Removed unused import #

Total comments: 8

Patch Set 4 : Removed unused code from test #

Patch Set 5 : Better test #

Patch Set 6 : Explicit handling on is_paused_at_exit #

Patch Set 7 : Fixed Copyright #

Patch Set 8 : Fixed concurrency problem in test #

Patch Set 9 : Better documentation in the test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+173 lines, -11 lines) Patch
M runtime/observatory/.analysis_options View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A runtime/observatory/tests/service/issue_30555_test.dart View 1 2 3 4 5 6 7 8 1 chunk +152 lines, -0 lines 0 comments Download
M runtime/vm/message_handler.cc View 1 2 3 4 5 2 chunks +20 lines, -11 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
cbernaschina
3 years, 3 months ago (2017-08-26 04:06:28 UTC) #3
cbernaschina
3 years, 3 months ago (2017-08-28 16:40:18 UTC) #4
cbernaschina
3 years, 3 months ago (2017-08-28 22:46:21 UTC) #6
siva
As discussed offline, I guess you would upload a new set of changes https://codereview.chromium.org/3010503002/diff/40001/runtime/observatory/tests/service/issue_30555_test.dart File ...
3 years, 3 months ago (2017-08-28 23:11:31 UTC) #7
cbernaschina
https://codereview.chromium.org/3010503002/diff/40001/runtime/observatory/tests/service/issue_30555_test.dart File runtime/observatory/tests/service/issue_30555_test.dart (right): https://codereview.chromium.org/3010503002/diff/40001/runtime/observatory/tests/service/issue_30555_test.dart#newcode1 runtime/observatory/tests/service/issue_30555_test.dart:1: // Copyright (c) 2015, the Dart project authors. Please ...
3 years, 3 months ago (2017-08-28 23:21:27 UTC) #8
siva
lgtm
3 years, 3 months ago (2017-08-29 01:27:31 UTC) #9
cbernaschina
3 years, 3 months ago (2017-08-29 17:51:01 UTC) #10
cbernaschina
3 years, 3 months ago (2017-08-29 18:06:15 UTC) #11
cbernaschina
3 years, 3 months ago (2017-08-29 18:15:08 UTC) #13
Message was sent while issue was closed.
Committed patchset #9 (id:160001) manually as
20066b625a723d0bca4a13afe408e9d6b1442e0e (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698