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

Issue 172533004: Add partitionAllocActualSize() for predicting 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 partitionAllocActualSize() for predicting actual size of allocation Similar to partitionAllocGetSize() but can be used before the allocation has been performed. Falls back to returning the size unchanged for "impossible" cases, like when PartitionAlloc isn't actually used, or when the size is too large to allocate. R=cevans@chromium.org BUG= Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=167644

Patch Set 1 #

Total comments: 7

Patch Set 2 : addressing review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -6 lines) Patch
M Source/wtf/PartitionAlloc.h View 1 3 chunks +36 lines, -0 lines 0 comments Download
M Source/wtf/PartitionAlloc.cpp View 1 3 chunks +5 lines, -5 lines 0 comments Download
M Source/wtf/PartitionAllocTest.cpp View 1 2 chunks +14 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
Jens Widell
Attempt at size_t-based API. Not sure I covered all the corners.
6 years, 10 months ago (2014-02-21 12:07:12 UTC) #1
Chris Evans
https://codereview.chromium.org/172533004/diff/1/Source/wtf/PartitionAlloc.h File Source/wtf/PartitionAlloc.h (right): https://codereview.chromium.org/172533004/diff/1/Source/wtf/PartitionAlloc.h#newcode569 Source/wtf/PartitionAlloc.h:569: { Can we have a comment such as "caller ...
6 years, 10 months ago (2014-02-21 22:33:36 UTC) #2
Jens Widell
Patch updated. https://codereview.chromium.org/172533004/diff/1/Source/wtf/PartitionAlloc.h File Source/wtf/PartitionAlloc.h (right): https://codereview.chromium.org/172533004/diff/1/Source/wtf/PartitionAlloc.h#newcode569 Source/wtf/PartitionAlloc.h:569: { On 2014/02/21 22:33:37, Chris Evans wrote: ...
6 years, 10 months ago (2014-02-22 09:23:30 UTC) #3
Chris Evans
On 2014/02/22 09:23:30, Jens Lindström wrote: > Patch updated. > > https://codereview.chromium.org/172533004/diff/1/Source/wtf/PartitionAlloc.h > File Source/wtf/PartitionAlloc.h ...
6 years, 10 months ago (2014-02-23 07:40:48 UTC) #4
Jens Widell
The CQ bit was checked by jl@opera.com
6 years, 10 months ago (2014-02-23 07:54:55 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jl@opera.com/172533004/70001
6 years, 10 months ago (2014-02-23 07:55:10 UTC) #6
commit-bot: I haz the power
6 years, 10 months ago (2014-02-23 09:22:01 UTC) #7
Message was sent while issue was closed.
Change committed as 167644

Powered by Google App Engine
This is Rietveld 408576698