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

Issue 1892623002: Fixes leak of native File objects. (Closed)

Created:
4 years, 8 months ago by zra
Modified:
4 years, 8 months ago
Reviewers:
Ivan Posva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fixes leak of native File objects. Also employs the same reference counting technique as secure sockets to avoid the IO Service touching dangling pointers. R=iposva@google.com Committed: https://github.com/dart-lang/sdk/commit/218545ba10465624413a2f50f89247ae77b13a3d

Patch Set 1 #

Patch Set 2 : Remove unused GetFD #

Total comments: 10

Patch Set 3 : Fix dart2js patch file #

Patch Set 4 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+308 lines, -255 lines) Patch
M runtime/bin/dartutils.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M runtime/bin/file.h View 1 2 3 6 chunks +35 lines, -5 lines 0 comments Download
M runtime/bin/file.cc View 1 25 chunks +94 lines, -38 lines 0 comments Download
M runtime/bin/file_android.cc View 2 chunks +4 lines, -5 lines 0 comments Download
M runtime/bin/file_linux.cc View 1 2 2 chunks +4 lines, -5 lines 0 comments Download
M runtime/bin/file_macos.cc View 1 2 2 chunks +4 lines, -5 lines 0 comments Download
M runtime/bin/file_patch.dart View 1 chunk +28 lines, -18 lines 0 comments Download
M runtime/bin/file_test.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M runtime/bin/file_unsupported.cc View 1 1 chunk +11 lines, -4 lines 0 comments Download
M runtime/bin/file_win.cc View 1 chunk +3 lines, -1 line 0 comments Download
M runtime/bin/gen_snapshot.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/io_natives.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M runtime/bin/main.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/js_runtime/lib/io_patch.dart View 1 2 1 chunk +3 lines, -51 lines 0 comments Download
M sdk/lib/io/file.dart View 1 2 3 4 chunks +5 lines, -4 lines 0 comments Download
M sdk/lib/io/file_impl.dart View 1 2 3 26 chunks +106 lines, -110 lines 0 comments Download
M tests/standalone/io/file_lock_test.dart View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
zra
4 years, 8 months ago (2016-04-14 20:59:59 UTC) #2
zra
Fixed dart2js patch file. ptal.
4 years, 8 months ago (2016-04-19 21:41:21 UTC) #3
Ivan Posva
LGTM with comments. -Ivan https://codereview.chromium.org/1892623002/diff/20001/runtime/bin/file.cc File runtime/bin/file.cc (right): https://codereview.chromium.org/1892623002/diff/20001/runtime/bin/file.cc#newcode120 runtime/bin/file.cc:120: Dart_Handle dart_this = Dart_GetNativeArgument(args, 0); ...
4 years, 8 months ago (2016-04-20 05:31:07 UTC) #4
zra
https://codereview.chromium.org/1892623002/diff/20001/runtime/bin/file.cc File runtime/bin/file.cc (right): https://codereview.chromium.org/1892623002/diff/20001/runtime/bin/file.cc#newcode120 runtime/bin/file.cc:120: Dart_Handle dart_this = Dart_GetNativeArgument(args, 0); On 2016/04/20 05:31:06, Ivan ...
4 years, 8 months ago (2016-04-20 17:07:52 UTC) #5
zra
4 years, 8 months ago (2016-04-20 17:08:41 UTC) #7
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
218545ba10465624413a2f50f89247ae77b13a3d (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698