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

Issue 1324023007: [heap] introduce ArrayBufferTracker (Closed)

Created:
5 years, 3 months ago by fedor.indutny
Modified:
5 years, 3 months ago
Reviewers:
Michael Lippautz
CC:
v8-dev, jochen (gone - plz use gerrit)
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[heap] introduce ArrayBufferTracker Move various ArrayBuffer-related methods from Heap class to the newly created ArrayBufferTracker. Consolidate and simplify things! BUG= R=mlippautz@chromium.org Committed: https://crrev.com/c7392f2e419a36c820f3fd8338fdd6266247acd7 Cr-Commit-Position: refs/heads/master@{#30624}

Patch Set 1 #

Patch Set 2 : split out #

Total comments: 22

Patch Set 3 : fixes #

Total comments: 11

Patch Set 4 : fixes #

Total comments: 2

Patch Set 5 : fix #

Patch Set 6 : destructor #

Unified diffs Side-by-side diffs Delta from patch set Stats (+269 lines, -186 lines) Patch
M BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/api.cc View 1 2 2 chunks +2 lines, -4 lines 0 comments Download
A src/heap/array-buffer-tracker.h View 1 2 3 4 5 1 chunk +73 lines, -0 lines 0 comments Download
A src/heap/array-buffer-tracker.cc View 1 2 3 4 5 1 chunk +138 lines, -0 lines 0 comments Download
M src/heap/heap.h View 1 2 3 6 chunks +17 lines, -45 lines 0 comments Download
M src/heap/heap.cc View 1 2 3 4 5 9 chunks +22 lines, -119 lines 0 comments Download
M src/heap/mark-compact.cc View 1 2 4 chunks +4 lines, -4 lines 0 comments Download
M src/heap/objects-visiting-inl.h View 1 3 chunks +3 lines, -4 lines 0 comments Download
M src/objects.cc View 1 2 3 2 chunks +5 lines, -8 lines 0 comments Download
M src/runtime/runtime-typedarray.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M tools/gyp/v8.gyp View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (3 generated)
fedor.indutny
Hello Michael! The refactoring as previously discussed. Any suggestions on how to do regression testing ...
5 years, 3 months ago (2015-09-02 18:08:58 UTC) #1
Michael Lippautz
Thanks, that's going into the direction I had in mind. For the first round: Please ...
5 years, 3 months ago (2015-09-03 10:37:54 UTC) #2
fedor.indutny
On a completely unrelated note. Do you think that the way ArrayBuffers are managed right ...
5 years, 3 months ago (2015-09-03 23:15:01 UTC) #3
fedor.indutny
And I have just split out the implementation, as you requested
5 years, 3 months ago (2015-09-04 01:02:02 UTC) #4
Michael Lippautz
Thanks, here we go again. ;) Performance: Let's not optimize this scenario to death unless ...
5 years, 3 months ago (2015-09-04 08:24:16 UTC) #5
fedor.indutny
Just added jochen@ as you have suggested, Mikeal. Additionally, I have cc-ed Trevor Norris from ...
5 years, 3 months ago (2015-09-04 08:39:17 UTC) #6
fedor.indutny
Pushed out the fixes that make the ArrayBufferTracker isolated. Going to see what could be ...
5 years, 3 months ago (2015-09-04 08:58:05 UTC) #7
Michael Lippautz
On 2015/09/04 08:39:17, fedor.indutny wrote: > Just added jochen@ as you have suggested, Mikeal. Additionally, ...
5 years, 3 months ago (2015-09-04 08:58:16 UTC) #8
Michael Lippautz
Since this is refactoring and almost done I am fine with a separate CL. https://codereview.chromium.org/1324023007/diff/40001/src/heap/array-buffer-tracker.cc ...
5 years, 3 months ago (2015-09-04 09:09:57 UTC) #9
fedor.indutny
All fixed! https://codereview.chromium.org/1324023007/diff/40001/src/heap/array-buffer-tracker.cc File src/heap/array-buffer-tracker.cc (right): https://codereview.chromium.org/1324023007/diff/40001/src/heap/array-buffer-tracker.cc#newcode32 src/heap/array-buffer-tracker.cc:32: bool in_new_space = heap()->InNewSpace(buffer); On 2015/09/04 09:09:56, ...
5 years, 3 months ago (2015-09-04 17:21:01 UTC) #10
Michael Lippautz
lgtm % 1 comment. https://codereview.chromium.org/1324023007/diff/60001/src/heap/array-buffer-tracker.cc File src/heap/array-buffer-tracker.cc (right): https://codereview.chromium.org/1324023007/diff/60001/src/heap/array-buffer-tracker.cc#newcode132 src/heap/array-buffer-tracker.cc:132: reinterpret_cast<v8::Isolate*>(isolate) Use update_amount_of_external_allocated_memory().
5 years, 3 months ago (2015-09-07 06:39:34 UTC) #11
fedor.indutny
Thank you, fixed! Please take a look. https://codereview.chromium.org/1324023007/diff/60001/src/heap/array-buffer-tracker.cc File src/heap/array-buffer-tracker.cc (right): https://codereview.chromium.org/1324023007/diff/60001/src/heap/array-buffer-tracker.cc#newcode132 src/heap/array-buffer-tracker.cc:132: reinterpret_cast<v8::Isolate*>(isolate) On ...
5 years, 3 months ago (2015-09-07 07:05:25 UTC) #12
Michael Lippautz
lgtm, give it a go
5 years, 3 months ago (2015-09-07 08:00:42 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1324023007/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1324023007/80001
5 years, 3 months ago (2015-09-07 08:15:00 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_asan_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_asan_rel/builds/7767)
5 years, 3 months ago (2015-09-07 08:20:14 UTC) #17
fedor.indutny
Oh, this was pretty stupid. I have just renamed the TearDown to ~ArrayBufferTracker, and added ...
5 years, 3 months ago (2015-09-07 08:26:26 UTC) #18
fedor.indutny
Just in case, I'm going to wait for your LGTM, because I have made more ...
5 years, 3 months ago (2015-09-07 10:13:05 UTC) #19
Michael Lippautz
still lgtm
5 years, 3 months ago (2015-09-07 10:31:23 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1324023007/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1324023007/100001
5 years, 3 months ago (2015-09-07 18:49:36 UTC) #22
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 3 months ago (2015-09-07 19:38:19 UTC) #23
commit-bot: I haz the power
5 years, 3 months ago (2015-09-07 19:38:38 UTC) #24
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/c7392f2e419a36c820f3fd8338fdd6266247acd7
Cr-Commit-Position: refs/heads/master@{#30624}

Powered by Google App Engine
This is Rietveld 408576698