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

Issue 1777643003: Uses a finalizer to delete zlib filter resources (Closed)

Created:
4 years, 9 months ago by zra
Modified:
4 years, 9 months ago
Reviewers:
Cutch, siva
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

Uses a finalizer to delete zlib filter resources Also other misc. cleanup. R=johnmccutchan@google.com Committed: https://github.com/dart-lang/sdk/commit/202e077815e78e25482f3a0c82589aeb4065c441

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 6

Patch Set 4 : Address comments. Fix more problems. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+151 lines, -114 lines) Patch
M runtime/bin/filter.h View 1 2 3 1 chunk +5 lines, -4 lines 0 comments Download
M runtime/bin/filter.cc View 1 2 3 11 chunks +144 lines, -93 lines 2 comments Download
M runtime/bin/filter_patch.dart View 1 chunk +0 lines, -2 lines 0 comments Download
M runtime/bin/filter_unsupported.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M runtime/bin/io_natives.cc View 1 chunk +0 lines, -1 line 0 comments Download
M sdk/lib/io/data_transformer.dart View 1 2 chunks +0 lines, -8 lines 0 comments Download
M sdk/lib/io/websocket_impl.dart View 2 chunks +0 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
zra
Changes related to my comments on the zlib Mojo CL. Will transfer these changes over ...
4 years, 9 months ago (2016-03-08 22:37:32 UTC) #2
zra
ping
4 years, 9 months ago (2016-03-10 15:46:56 UTC) #3
Cutch
https://codereview.chromium.org/1777643003/diff/40001/runtime/bin/filter.cc File runtime/bin/filter.cc (right): https://codereview.chromium.org/1777643003/diff/40001/runtime/bin/filter.cc#newcode43 runtime/bin/filter.cc:43: ASSERT(dictionary != NULL); Are we sure we want to ...
4 years, 9 months ago (2016-03-10 17:10:00 UTC) #4
zra
https://codereview.chromium.org/1777643003/diff/40001/runtime/bin/filter.cc File runtime/bin/filter.cc (right): https://codereview.chromium.org/1777643003/diff/40001/runtime/bin/filter.cc#newcode43 runtime/bin/filter.cc:43: ASSERT(dictionary != NULL); On 2016/03/10 17:09:59, Cutch wrote: > ...
4 years, 9 months ago (2016-03-10 18:48:09 UTC) #5
Cutch
lgtm
4 years, 9 months ago (2016-03-10 18:59:14 UTC) #6
zra
Committed patchset #4 (id:60001) manually as 202e077815e78e25482f3a0c82589aeb4065c441 (presubmit successful).
4 years, 9 months ago (2016-03-10 23:42:04 UTC) #8
siva
4 years, 9 months ago (2016-03-11 12:48:19 UTC) #10
Message was sent while issue was closed.
https://codereview.chromium.org/1777643003/diff/60001/runtime/bin/filter.cc
File runtime/bin/filter.cc (right):

https://codereview.chromium.org/1777643003/diff/60001/runtime/bin/filter.cc#n...
runtime/bin/filter.cc:91: }
Why not change the signature of CopyDictionary to also return the dictionary
length which it is computed inside of it.
static Dart_Handle CopyDictionary(Dart_Handle dictionary_obj,
                                  uint8_t** dictionary,
                                  intptr_t* dictionary_length);

That would avoid the need for the subsequent call to Dart_Listlength.

https://codereview.chromium.org/1777643003/diff/60001/runtime/bin/filter.cc#n...
runtime/bin/filter.cc:130: bool raw = DartUtils::GetBooleanValue(raw_obj);
Maybe just:
bool raw;
Dart_GetNativeBooleanArgument(args, 7, &raw);

The same should hold for the int64_t values:
Dart_GetNativeIntegerArgument(args, 3, &window_bits);

Powered by Google App Engine
This is Rietveld 408576698