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

Issue 1411843005: Dart: Removes C++ set for closing handles on an unhandled exception. (Closed)

Created:
5 years, 2 months ago by zra
Modified:
5 years, 1 month ago
Reviewers:
Cutch
CC:
mojo-reviews_chromium.org, gregsimon, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org, yzshen+mojopublicwatch_chromium.org
Base URL:
git@github.com:domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Dart: Removes C++ set for closing handles on an unhandled exception. Replaces it with a call back into Dart from the embedder's unhandled exception callback. This has the beneficial side-effect of decoupling closing handles on an unhandled exception from registration of finalizers on handles for leak detection. fixes #478 R=johnmccutchan@google.com Committed: https://chromium.googlesource.com/external/mojo/+/241ff8a72dad01717aceac49af8f62bedf1218a2

Patch Set 1 #

Patch Set 2 : Format #

Total comments: 6

Patch Set 3 : Address comments #

Total comments: 2

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -79 lines) Patch
M mojo/dart/embedder/dart_controller.cc View 1 2 3 2 chunks +22 lines, -11 lines 0 comments Download
M mojo/dart/embedder/mojo_dart_state.h View 3 chunks +1 line, -10 lines 0 comments Download
M mojo/dart/embedder/mojo_natives.cc View 6 chunks +3 lines, -12 lines 0 comments Download
M mojo/dart/embedder/test/dart_to_cpp_tests.cc View 1 2 3 4 chunks +11 lines, -10 lines 0 comments Download
M mojo/dart/embedder/test/run_dart_tests.cc View 1 2 3 5 chunks +33 lines, -21 lines 0 comments Download
M mojo/dart/embedder/test/validation_unittest.cc View 1 2 3 4 chunks +8 lines, -2 lines 0 comments Download
A + mojo/dart/test/unhandled_exception_test.dart View 1 chunk +4 lines, -5 lines 0 comments Download
M mojo/public/dart/mojo/lib/src/event_stream.dart View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M mojo/public/dart/mojo/lib/src/handle.dart View 1 2 5 chunks +9 lines, -5 lines 0 comments Download
M mojo/public/dart/mojo/sdk_ext/src/natives.dart View 1 chunk +28 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
zra
5 years, 2 months ago (2015-10-24 02:22:47 UTC) #2
Cutch
https://codereview.chromium.org/1411843005/diff/20001/mojo/dart/embedder/dart_controller.cc File mojo/dart/embedder/dart_controller.cc (right): https://codereview.chromium.org/1411843005/diff/20001/mojo/dart/embedder/dart_controller.cc#newcode470 mojo/dart/embedder/dart_controller.cc:470: // TODO(zra): Instead of passing an error handle, it ...
5 years, 1 month ago (2015-10-26 17:10:03 UTC) #3
zra
https://codereview.chromium.org/1411843005/diff/20001/mojo/dart/embedder/dart_controller.cc File mojo/dart/embedder/dart_controller.cc (right): https://codereview.chromium.org/1411843005/diff/20001/mojo/dart/embedder/dart_controller.cc#newcode470 mojo/dart/embedder/dart_controller.cc:470: // TODO(zra): Instead of passing an error handle, it ...
5 years, 1 month ago (2015-10-26 17:53:54 UTC) #5
zra
ping
5 years, 1 month ago (2015-10-27 18:30:48 UTC) #6
Cutch
lgtm with one comment https://codereview.chromium.org/1411843005/diff/40001/mojo/dart/embedder/test/run_dart_tests.cc File mojo/dart/embedder/test/run_dart_tests.cc (right): https://codereview.chromium.org/1411843005/diff/40001/mojo/dart/embedder/test/run_dart_tests.cc#newcode73 mojo/dart/embedder/test/run_dart_tests.cc:73: EXPECT_EQ(closed_handles, expected_unclosed_handles); Lines 71-76 can ...
5 years, 1 month ago (2015-10-27 20:48:54 UTC) #7
zra
Thanks! https://codereview.chromium.org/1411843005/diff/40001/mojo/dart/embedder/test/run_dart_tests.cc File mojo/dart/embedder/test/run_dart_tests.cc (right): https://codereview.chromium.org/1411843005/diff/40001/mojo/dart/embedder/test/run_dart_tests.cc#newcode73 mojo/dart/embedder/test/run_dart_tests.cc:73: EXPECT_EQ(closed_handles, expected_unclosed_handles); On 2015/10/27 20:48:54, Cutch wrote: > ...
5 years, 1 month ago (2015-10-27 22:05:58 UTC) #8
zra
5 years, 1 month ago (2015-10-27 22:06:16 UTC) #9
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
241ff8a72dad01717aceac49af8f62bedf1218a2 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698