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

Issue 23604048: Get rid of fastMallocGoodSize() and replace it with something generic. (Closed)

Created:
7 years, 3 months ago by Chris Evans
Modified:
7 years, 3 months ago
Reviewers:
abarth-chromium
CC:
blink-reviews, loislo+blink_chromium.org, eae+blinkwatch, yurys+blink_chromium.org, abarth-chromium, dglazkov+blink, adamk+blink_chromium.org, jeez
Visibility:
Public.

Description

Get rid of fastMallocGoodSize() and replace it with something generic. - fastMallocGoodSize() was Mac-specific and it looks relatively slow and non-inlineable. The replacement is based around a single lookup into a small table. - We now have allocation quantization on all platforms for Vector. I've verified that many Vector instantiations are able to recover previously-wasted memory as real element capacity. See bug for details. - The quantization is also immediately suitable for use with the Partition allocator, to avoid fragmentation due to excessive numbers of buckets. To be followed up in a future patch series. BUG=286477 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=157524 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=157555

Patch Set 1 #

Patch Set 2 : Fix compile error. #

Total comments: 4

Patch Set 3 : Review actions and rebased. #

Patch Set 4 : For try. #

Patch Set 5 : Add missed WTF_EXPORT. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -49 lines) Patch
M Source/wtf/FastMalloc.h View 2 chunks +0 lines, -2 lines 0 comments Download
M Source/wtf/FastMalloc.cpp View 1 2 2 chunks +0 lines, -16 lines 0 comments Download
A Source/wtf/QuantizedAllocation.h View 1 2 3 4 1 chunk +85 lines, -0 lines 0 comments Download
A + Source/wtf/QuantizedAllocation.cpp View 1 2 1 chunk +16 lines, -21 lines 0 comments Download
M Source/wtf/Vector.h View 1 2 3 3 chunks +7 lines, -7 lines 0 comments Download
M Source/wtf/WTF.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M Source/wtf/WTF.cpp View 1 2 3 chunks +4 lines, -2 lines 0 comments Download
M Source/wtf/wtf.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Chris Evans
7 years, 3 months ago (2013-09-06 23:19:20 UTC) #1
abarth-chromium
It would be good to explain where these rounding constants come from. Is there some ...
7 years, 3 months ago (2013-09-07 05:08:23 UTC) #2
Chris Evans
PTAL! On 2013/09/07 05:08:23, abarth wrote: > It would be good to explain where these ...
7 years, 3 months ago (2013-09-09 22:09:58 UTC) #3
abarth-chromium
lgtm
7 years, 3 months ago (2013-09-10 16:11:33 UTC) #4
commit-bot: I haz the power
Change committed as 157524
7 years, 3 months ago (2013-09-10 16:12:52 UTC) #5
Chris Evans
On 2013/09/10 16:12:52, I haz the power (commit-bot) wrote: > Change committed as 157524 CQ ...
7 years, 3 months ago (2013-09-10 16:25:50 UTC) #6
abarth-chromium
boo
7 years, 3 months ago (2013-09-10 16:28:48 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cevans@chromium.org/23604048/24001
7 years, 3 months ago (2013-09-10 21:30:43 UTC) #8
commit-bot: I haz the power
7 years, 3 months ago (2013-09-10 22:51:13 UTC) #9
Message was sent while issue was closed.
Change committed as 157555

Powered by Google App Engine
This is Rietveld 408576698