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

Issue 1183763003: Remove ArrayBufferDeallocationObserver (Closed)

Created:
5 years, 6 months ago by binji
Modified:
5 years, 6 months ago
Reviewers:
haraken, tkent, Yuki
CC:
arv+blink, blink-reviews, blink-reviews-bindings_chromium.org, blink-reviews-dom_chromium.org, blink-reviews-wtf_chromium.org, dglazkov+blink, eae+blinkwatch, Mikhail, rwlbuis, Raymond Toy, sof, vivekg_samsung, vivekg
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Remove ArrayBufferDeallocationObserver It was introduced a long time ago because we didn't want to report memory of ArrayBuffers that do not (yet) have wrappers to V8. The underlying idea was that we don't want to report memory that is not guaranteed to be freed by V8 GC to V8. However, the assumption has changed, and now we're reporting Blink's memory to V8 even if the memory is not guaranteed to be freed by V8 GC. BUG=none R=haraken@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197162

Patch Set 1 #

Patch Set 2 : use injection pattern #

Total comments: 4

Patch Set 3 : move callback to WTF.cpp #

Total comments: 4

Patch Set 4 : rename function #

Total comments: 2

Patch Set 5 : s_ prefix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -193 lines) Patch
M Source/bindings/scripts/v8_interface.py View 1 chunk +0 lines, -2 lines 0 comments Download
M Source/bindings/templates/interface.cpp View 1 1 chunk +1 line, -5 lines 0 comments Download
M Source/bindings/tests/results/core/V8ArrayBuffer.cpp View 1 2 chunks +1 line, -6 lines 0 comments Download
M Source/core/core.gypi View 1 1 chunk +0 lines, -2 lines 0 comments Download
M Source/core/dom/DOMArrayBuffer.h View 2 chunks +0 lines, -5 lines 0 comments Download
M Source/core/dom/DOMArrayBuffer.cpp View 2 chunks +0 lines, -7 lines 0 comments Download
D Source/core/dom/DOMArrayBufferDeallocationObserver.h View 1 chunk +0 lines, -25 lines 0 comments Download
D Source/core/dom/DOMArrayBufferDeallocationObserver.cpp View 1 chunk +0 lines, -29 lines 0 comments Download
M Source/modules/webaudio/AudioBuffer.h View 1 chunk +0 lines, -2 lines 0 comments Download
M Source/modules/webaudio/AudioBuffer.cpp View 2 chunks +0 lines, -18 lines 0 comments Download
M Source/platform/testing/RunAllTests.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebKit.cpp View 1 2 3 2 chunks +6 lines, -1 line 0 comments Download
M Source/wtf/ArrayBuffer.h View 1 chunk +0 lines, -9 lines 0 comments Download
M Source/wtf/ArrayBufferContents.h View 1 2 3 4 3 chunks +9 lines, -17 lines 0 comments Download
M Source/wtf/ArrayBufferContents.cpp View 1 2 3 4 4 chunks +9 lines, -10 lines 0 comments Download
D Source/wtf/ArrayBufferDeallocationObserver.h View 1 chunk +0 lines, -50 lines 0 comments Download
M Source/wtf/WTF.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M Source/wtf/WTF.cpp View 1 2 3 3 chunks +3 lines, -1 line 0 comments Download
M Source/wtf/testing/RunAllTests.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/wtf/wtf.gypi View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 20 (4 generated)
binji
Is this what you meant by your comment in https://codereview.chromium.org/1097773004? I copied your explanation from ...
5 years, 6 months ago (2015-06-12 20:11:15 UTC) #1
binji
On 2015/06/12 at 20:11:15, binji wrote: > Is this what you meant by your comment ...
5 years, 6 months ago (2015-06-12 20:37:18 UTC) #2
haraken
Thanks for working on this! > Hm, seems that WTF cannot reference v8.h directly. Right, ...
5 years, 6 months ago (2015-06-13 03:32:04 UTC) #4
Yuki
On 2015/06/13 03:32:04, haraken wrote: > Thanks for working on this! > > > Hm, ...
5 years, 6 months ago (2015-06-15 04:49:18 UTC) #5
haraken
On 2015/06/15 04:49:18, Yuki wrote: > On 2015/06/13 03:32:04, haraken wrote: > > Thanks for ...
5 years, 6 months ago (2015-06-15 04:53:29 UTC) #6
Yuki
On 2015/06/15 04:49:18, Yuki wrote: > On 2015/06/13 03:32:04, haraken wrote: > > Thanks for ...
5 years, 6 months ago (2015-06-15 05:09:45 UTC) #7
haraken
On 2015/06/15 05:09:45, Yuki wrote: > On 2015/06/15 04:49:18, Yuki wrote: > > On 2015/06/13 ...
5 years, 6 months ago (2015-06-15 05:17:08 UTC) #8
binji
On 2015/06/15 at 05:17:08, haraken wrote: > On 2015/06/15 05:09:45, Yuki wrote: > > On ...
5 years, 6 months ago (2015-06-15 17:28:24 UTC) #9
haraken
https://codereview.chromium.org/1183763003/diff/20001/Source/bindings/core/v8/V8Initializer.cpp File Source/bindings/core/v8/V8Initializer.cpp (right): https://codereview.chromium.org/1183763003/diff/20001/Source/bindings/core/v8/V8Initializer.cpp#newcode408 Source/bindings/core/v8/V8Initializer.cpp:408: WTF::ArrayBufferContents::setAllocationListener(arrayBufferContentsAllocationListener); I'd move this to initializeWithoutV8 in WebKit.cpp. See ...
5 years, 6 months ago (2015-06-15 17:33:29 UTC) #10
binji
https://codereview.chromium.org/1183763003/diff/20001/Source/bindings/core/v8/V8Initializer.cpp File Source/bindings/core/v8/V8Initializer.cpp (right): https://codereview.chromium.org/1183763003/diff/20001/Source/bindings/core/v8/V8Initializer.cpp#newcode408 Source/bindings/core/v8/V8Initializer.cpp:408: WTF::ArrayBufferContents::setAllocationListener(arrayBufferContentsAllocationListener); On 2015/06/15 at 17:33:29, haraken wrote: > I'd ...
5 years, 6 months ago (2015-06-15 19:19:46 UTC) #11
haraken
LGTM tkent-san for wtf/. https://codereview.chromium.org/1183763003/diff/40001/Source/web/WebKit.cpp File Source/web/WebKit.cpp (right): https://codereview.chromium.org/1183763003/diff/40001/Source/web/WebKit.cpp#newcode166 Source/web/WebKit.cpp:166: static void arrayBufferAllocationListener(int size) arrayBufferAllocationListener ...
5 years, 6 months ago (2015-06-15 20:05:26 UTC) #13
binji
https://codereview.chromium.org/1183763003/diff/40001/Source/web/WebKit.cpp File Source/web/WebKit.cpp (right): https://codereview.chromium.org/1183763003/diff/40001/Source/web/WebKit.cpp#newcode166 Source/web/WebKit.cpp:166: static void arrayBufferAllocationListener(int size) On 2015/06/15 at 20:05:25, haraken ...
5 years, 6 months ago (2015-06-15 22:53:12 UTC) #14
tkent
lgtm https://codereview.chromium.org/1183763003/diff/60001/Source/wtf/ArrayBufferContents.h File Source/wtf/ArrayBufferContents.h (right): https://codereview.chromium.org/1183763003/diff/60001/Source/wtf/ArrayBufferContents.h#newcode76 Source/wtf/ArrayBufferContents.h:76: static AdjustAmountOfExternalAllocatedMemoryFunction adjustAmountOfExternalAllocatedMemoryFunction; adjustAmountOfExternalAllocatedMemoryFunction -> s_adjustAmountOfExternalAllocatedMemoryFunction
5 years, 6 months ago (2015-06-15 23:21:32 UTC) #15
binji
https://codereview.chromium.org/1183763003/diff/60001/Source/wtf/ArrayBufferContents.h File Source/wtf/ArrayBufferContents.h (right): https://codereview.chromium.org/1183763003/diff/60001/Source/wtf/ArrayBufferContents.h#newcode76 Source/wtf/ArrayBufferContents.h:76: static AdjustAmountOfExternalAllocatedMemoryFunction adjustAmountOfExternalAllocatedMemoryFunction; On 2015/06/15 at 23:21:32, tkent wrote: ...
5 years, 6 months ago (2015-06-16 06:20:56 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1183763003/80001
5 years, 6 months ago (2015-06-16 06:21:06 UTC) #19
commit-bot: I haz the power
5 years, 6 months ago (2015-06-16 08:13:24 UTC) #20
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=197162

Powered by Google App Engine
This is Rietveld 408576698