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

Issue 800713002: - Implement Isolate.kill. (Closed)

Created:
6 years ago by Ivan Posva
Modified:
6 years ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org, Lasse Reichstein Nielsen
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 9
Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -33 lines) Patch
M runtime/lib/isolate_patch.dart View 4 chunks +9 lines, -3 lines 0 comments Download
M runtime/vm/code_generator.cc View 1 chunk +7 lines, -1 line 4 comments Download
M runtime/vm/isolate.h View 1 chunk +5 lines, -2 lines 3 comments Download
M runtime/vm/isolate.cc View 10 chunks +57 lines, -27 lines 2 comments Download

Messages

Total messages: 11 (3 generated)
Ivan Posva
6 years ago (2014-12-12 23:19:08 UTC) #2
siva
lgtm https://codereview.chromium.org/800713002/diff/1/runtime/vm/code_generator.cc File runtime/vm/code_generator.cc (right): https://codereview.chromium.org/800713002/diff/1/runtime/vm/code_generator.cc#newcode1197 runtime/vm/code_generator.cc:1197: const String& msg = String::Handle(String::New("unwind")); why not "isolate ...
6 years ago (2014-12-13 00:24:06 UTC) #3
Ivan Posva
Thanks! -Ivan https://codereview.chromium.org/800713002/diff/1/runtime/vm/code_generator.cc File runtime/vm/code_generator.cc (right): https://codereview.chromium.org/800713002/diff/1/runtime/vm/code_generator.cc#newcode1197 runtime/vm/code_generator.cc:1197: const String& msg = String::Handle(String::New("unwind")); On 2014/12/13 ...
6 years ago (2014-12-13 00:36:48 UTC) #4
Ivan Posva
Committed patchset #1 (id:1) manually as r42355 (presubmit successful).
6 years ago (2014-12-13 00:39:20 UTC) #5
Lasse Reichstein Nielsen
https://codereview.chromium.org/800713002/diff/1/runtime/vm/code_generator.cc File runtime/vm/code_generator.cc (right): https://codereview.chromium.org/800713002/diff/1/runtime/vm/code_generator.cc#newcode1199 runtime/vm/code_generator.cc:1199: Exceptions::PropagateError(error); If an UnwindError terminates the isolate without running ...
6 years ago (2014-12-13 02:04:46 UTC) #7
turnidge
DBC We haven't actually used UnwindError for real before. I'm sure there are some places ...
6 years ago (2014-12-13 02:14:50 UTC) #9
Ivan Posva
On 2014/12/13 02:14:50, turnidge wrote: > DBC > > We haven't actually used UnwindError for ...
6 years ago (2014-12-15 22:25:52 UTC) #10
Ivan Posva
6 years ago (2014-12-15 22:25:59 UTC) #11
Message was sent while issue was closed.
https://codereview.chromium.org/800713002/diff/1/runtime/vm/code_generator.cc
File runtime/vm/code_generator.cc (right):

https://codereview.chromium.org/800713002/diff/1/runtime/vm/code_generator.cc...
runtime/vm/code_generator.cc:1199: Exceptions::PropagateError(error);
On 2014/12/13 02:04:46, Lasse Reichstein Nielsen wrote:
> If an UnwindError terminates the isolate without running any further user
code,
> then this looks fine. It shouldn't trigger catch or finally blocks.

PropagateError does propagate the error to the next C frame on the stack so that
native  C/C++ code can properly release resources before propagating the error
further. This is the same mechanism that is used to propagate compilation errors
(AKA LanguageError).

Powered by Google App Engine
This is Rietveld 408576698