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

Issue 2748353004: Only propagate reload errors when there are Dart frames on the stack. (Closed)

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

Description

Only propagate reload errors when there are Dart frames on the stack. - [x] Check for Dart frames on the stack before propagating an exception. - [x] Never propagate an uncaught exception that occurs during reload to the program. - [x] Add a unit test to verify that bad imports during a reload do not crash the VM Fixes #29085 BUG= R=rmacnak@google.com Committed: https://github.com/dart-lang/sdk/commit/4d7acb34d94b82e7fdcbf05b832e844eef5847c4

Patch Set 1 #

Patch Set 2 : rmacnak review #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -8 lines) Patch
M runtime/observatory/lib/src/service/object.dart View 2 chunks +2 lines, -5 lines 0 comments Download
A runtime/observatory/tests/service/bad_reload/v1/main.dart View 1 chunk +13 lines, -0 lines 0 comments Download
A runtime/observatory/tests/service/bad_reload/v2/main.dart View 1 chunk +14 lines, -0 lines 0 comments Download
A runtime/observatory/tests/service/bad_reload_test.dart View 1 chunk +85 lines, -0 lines 0 comments Download
M runtime/vm/isolate_reload.cc View 1 1 chunk +10 lines, -3 lines 1 comment Download

Messages

Total messages: 8 (4 generated)
Cutch
3 years, 9 months ago (2017-03-15 23:51:21 UTC) #3
rmacnak
LGTM
3 years, 9 months ago (2017-03-16 17:49:30 UTC) #4
Cutch
Committed patchset #2 (id:20001) manually as 4d7acb34d94b82e7fdcbf05b832e844eef5847c4 (presubmit successful).
3 years, 9 months ago (2017-03-16 17:51:09 UTC) #6
siva
3 years, 9 months ago (2017-03-16 18:09:45 UTC) #8
Message was sent while issue was closed.
DBC

https://codereview.chromium.org/2748353004/diff/20001/runtime/vm/isolate_relo...
File runtime/vm/isolate_reload.cc (right):

https://codereview.chromium.org/2748353004/diff/20001/runtime/vm/isolate_relo...
runtime/vm/isolate_reload.cc:637: BackgroundCompiler::Enable();
We should probably enable the background compiler as the last step after all the
checks are done.

Powered by Google App Engine
This is Rietveld 408576698