Chromium Code Reviews
Help | Chromium Project | Gerrit Changes | Sign in
(14)

Issue 1153473011: For large (but not direct mapped) allocations, track the real allocation size. (Closed)

Created:
4 years, 11 months ago by Chris Evans
Modified:
4 years, 10 months ago
Reviewers:
haraken
CC:
blink-reviews, Mads Ager (chromium), oilpan-reviews, blink-reviews-wtf_chromium.org, kouhei+heap_chromium.org, Mikhail, tasak, ssid, Primiano Tucci (use gerrit)
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

For large (but not direct mapped) allocations, track the real allocation size. Allocations above 64kB can be tracked more accurately because we have spare metadata space where we can store the exact allocation size. For now, we use this to report more accurate statistics. But we will probably wire it up to partitionPurgeMemory in a future CL. During work on this CL, a function to round up to system page size was factored out, and the control flow of partitionAllocSlowPath was tided up to fall down to the return's at the tail of the function in more cases. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196893

Patch Set 1 #

Total comments: 3

Patch Set 2 : Review feedback. #

Total comments: 1

Patch Set 3 : More review feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -19 lines) Patch
M Source/wtf/PartitionAlloc.cpp View 1 2 7 chunks +56 lines, -19 lines 0 comments Download
M Source/wtf/PartitionAllocTest.cpp View 1 chunk +27 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
Chris Evans
4 years, 11 months ago (2015-06-05 21:42:00 UTC) #2
haraken
https://codereview.chromium.org/1153473011/diff/1/Source/wtf/PartitionAlloc.cpp File Source/wtf/PartitionAlloc.cpp (right): https://codereview.chromium.org/1153473011/diff/1/Source/wtf/PartitionAlloc.cpp#newcode809 Source/wtf/PartitionAlloc.cpp:809: if (UNLIKELY(rawSizePtr != nullptr)) Given that this is a ...
4 years, 11 months ago (2015-06-06 15:07:54 UTC) #3
Chris Evans
On 2015/06/06 15:07:54, haraken wrote: > https://codereview.chromium.org/1153473011/diff/1/Source/wtf/PartitionAlloc.cpp > File Source/wtf/PartitionAlloc.cpp (right): > > https://codereview.chromium.org/1153473011/diff/1/Source/wtf/PartitionAlloc.cpp#newcode809 > ...
4 years, 10 months ago (2015-06-10 00:44:06 UTC) #4
haraken
On 2015/06/10 00:44:06, Chris Evans wrote: > On 2015/06/06 15:07:54, haraken wrote: > > > ...
4 years, 10 months ago (2015-06-10 00:53:54 UTC) #5
haraken
LGTM https://codereview.chromium.org/1153473011/diff/20001/Source/wtf/PartitionAlloc.cpp File Source/wtf/PartitionAlloc.cpp (right): https://codereview.chromium.org/1153473011/diff/20001/Source/wtf/PartitionAlloc.cpp#newcode1073 Source/wtf/PartitionAlloc.cpp:1073: size_t* rawSizePtr = partitionPageGetRawSizePtr(const_cast<PartitionPage*>(page)); Nit: It looks a ...
4 years, 10 months ago (2015-06-10 00:54:01 UTC) #6
Chris Evans
On 2015/06/10 00:54:01, haraken wrote: > LGTM > > https://codereview.chromium.org/1153473011/diff/20001/Source/wtf/PartitionAlloc.cpp > File Source/wtf/PartitionAlloc.cpp (right): > ...
4 years, 10 months ago (2015-06-10 18:49:42 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1153473011/40001
4 years, 10 months ago (2015-06-10 18:50:17 UTC) #10
commit-bot: I haz the power
4 years, 10 months ago (2015-06-10 19:49:11 UTC) #11
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=196893

Powered by Google App Engine
This is Rietveld 408576698