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

Issue 10916185: New test case to ensure finalizers are not invoked on deleted handles. (Closed)

Created:
8 years, 3 months ago by cshapiro
Modified:
8 years, 3 months ago
Reviewers:
hausner
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

New test case to ensure finalizers are not invoked on deleted handles. This also removes a needless allocation from the complementary test. Committed: https://code.google.com/p/dart/source/detail?r=12075

Patch Set 1 #

Total comments: 2

Patch Set 2 : address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -6 lines) Patch
M runtime/vm/dart_api_impl_test.cc View 1 1 chunk +29 lines, -6 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
cshapiro
8 years, 3 months ago (2012-09-07 22:06:31 UTC) #1
hausner
LGTM http://codereview.chromium.org/10916185/diff/1/runtime/vm/dart_api_impl_test.cc File runtime/vm/dart_api_impl_test.cc (right): http://codereview.chromium.org/10916185/diff/1/runtime/vm/dart_api_impl_test.cc#newcode1452 runtime/vm/dart_api_impl_test.cc:1452: Dart_DeletePersistentHandle(weak_ref); Maybe add a comment that the finalizer ...
8 years, 3 months ago (2012-09-07 22:19:42 UTC) #2
cshapiro
8 years, 3 months ago (2012-09-07 22:32:21 UTC) #3
http://codereview.chromium.org/10916185/diff/1/runtime/vm/dart_api_impl_test.cc
File runtime/vm/dart_api_impl_test.cc (right):

http://codereview.chromium.org/10916185/diff/1/runtime/vm/dart_api_impl_test....
runtime/vm/dart_api_impl_test.cc:1452: Dart_DeletePersistentHandle(weak_ref);
Thanks, that is a good idea.  Done.

Powered by Google App Engine
This is Rietveld 408576698