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

Issue 169523004: Add partitionAllocGetSize() for determining actual size of allocation (Closed)

Created:
6 years, 10 months ago by Jens Widell
Modified:
6 years, 10 months ago
Reviewers:
Chris Evans
CC:
blink-reviews, loislo+blink_chromium.org, yurys+blink_chromium.org, abarth-chromium, adamk+blink_chromium.org, Inactive, Mikhail
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Add partitionAllocGetSize() for determining actual size of allocation Since PartitionAlloc allocates from buckets of quantized sizes, it will sometimes allocate a significantly larger block than requested. Add the utility function partitionAllocGetSize() for retrieving the actual size of an allocation, useful if the client can make use of the extra size. BUG= Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=167582

Patch Set 1 #

Total comments: 7

Patch Set 2 : address review comments #

Total comments: 3

Patch Set 3 : adjust test sizes, and reword/fix comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -0 lines) Patch
M Source/wtf/PartitionAlloc.h View 1 2 chunks +23 lines, -0 lines 0 comments Download
M Source/wtf/PartitionAllocTest.cpp View 1 2 1 chunk +50 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
Jens Widell
Please consider this a draft; I'm uploading as a way of asking some questions. :-) ...
6 years, 10 months ago (2014-02-17 12:22:24 UTC) #1
Chris Evans
On 2014/02/17 12:22:24, Jens Lindström wrote: > Please consider this a draft; I'm uploading as ...
6 years, 10 months ago (2014-02-18 20:35:28 UTC) #2
Chris Evans
Nice. I think we're pretty close design-wise now, not too much to do until we ...
6 years, 10 months ago (2014-02-18 22:19:58 UTC) #3
Jens Widell
Thanks for great feedback! Changes: - Add *SupportsGetSize(), and simply assert in *GetSize() that it's ...
6 years, 10 months ago (2014-02-19 07:02:25 UTC) #4
Chris Evans
LGTM subject to fixing three small nits before landing. https://codereview.chromium.org/169523004/diff/80001/Source/wtf/PartitionAllocTest.cpp File Source/wtf/PartitionAllocTest.cpp (right): https://codereview.chromium.org/169523004/diff/80001/Source/wtf/PartitionAllocTest.cpp#newcode595 Source/wtf/PartitionAllocTest.cpp:595: ...
6 years, 10 months ago (2014-02-19 07:15:51 UTC) #5
Chris Evans
On 2014/02/19 07:15:51, Chris Evans wrote: > LGTM subject to fixing three small nits before ...
6 years, 10 months ago (2014-02-19 07:16:14 UTC) #6
Jens Widell
On 2014/02/19 07:15:51, Chris Evans wrote: > LGTM subject to fixing three small nits before ...
6 years, 10 months ago (2014-02-19 07:30:10 UTC) #7
Jens Widell
The CQ bit was checked by jl@opera.com
6 years, 10 months ago (2014-02-19 07:30:14 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jl@opera.com/169523004/130001
6 years, 10 months ago (2014-02-19 07:30:36 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-19 10:49:17 UTC) #10
commit-bot: I haz the power
Retried try job too often on win_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_blink_rel&number=27819
6 years, 10 months ago (2014-02-19 10:49:18 UTC) #11
Jens Widell
The CQ bit was checked by jl@opera.com
6 years, 10 months ago (2014-02-19 10:53:27 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jl@opera.com/169523004/130001
6 years, 10 months ago (2014-02-19 10:53:44 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-19 14:05:47 UTC) #14
commit-bot: I haz the power
Retried try job too often on win_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_blink_rel&number=27866
6 years, 10 months ago (2014-02-19 14:05:47 UTC) #15
Jens Widell
The CQ bit was checked by jl@opera.com
6 years, 10 months ago (2014-02-20 06:05:01 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jl@opera.com/169523004/130001
6 years, 10 months ago (2014-02-20 06:05:09 UTC) #17
Jens Widell
The CQ bit was unchecked by jl@opera.com
6 years, 10 months ago (2014-02-20 08:53:39 UTC) #18
Jens Widell
I realized a simpler implementation of this functionality would be to simply calculate the actual ...
6 years, 10 months ago (2014-02-20 08:58:09 UTC) #19
Chris Evans
On 2014/02/20 08:58:09, Jens Lindström wrote: > I realized a simpler implementation of this functionality ...
6 years, 10 months ago (2014-02-21 03:13:23 UTC) #20
Jens Widell
On 2014/02/21 03:13:23, Chris Evans wrote: > Interesting. To be safe you'd need a type-safe ...
6 years, 10 months ago (2014-02-21 06:01:59 UTC) #21
Chris Evans
On 2014/02/21 06:01:59, Jens Lindström wrote: > On 2014/02/21 03:13:23, Chris Evans wrote: > > ...
6 years, 10 months ago (2014-02-21 08:32:48 UTC) #22
Jens Widell
On 2014/02/21 08:32:48, Chris Evans wrote: > On 2014/02/21 06:01:59, Jens Lindström wrote: > > ...
6 years, 10 months ago (2014-02-21 08:37:36 UTC) #23
Jens Widell
The CQ bit was checked by jl@opera.com
6 years, 10 months ago (2014-02-21 08:37:55 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jl@opera.com/169523004/130001
6 years, 10 months ago (2014-02-21 08:38:06 UTC) #25
commit-bot: I haz the power
6 years, 10 months ago (2014-02-21 08:38:22 UTC) #26
Message was sent while issue was closed.
Change committed as 167582

Powered by Google App Engine
This is Rietveld 408576698