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

Issue 1197753003: PartitionAlloc: implement discarding for partitionPurgeMemoryGeneric(). (Closed)

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

Description

PartitionAlloc: implement discarding for partitionPurgeMemoryGeneric(). There are two instances where we can return memory to the system, above and beyond purging the free page list: - Unused system pages at the end of larger allocations. - Unused slots within slot spans for >4096 byte buckets. We now have all the metadata and support APIs necessary to discard these unused pages, so add a new flag to partitionPurgeMemoryGeneric() to support this, along with tests. BUG=501878 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197626

Patch Set 1 #

Total comments: 7

Patch Set 2 : Action review comments. #

Patch Set 3 : Add missing comment. #

Total comments: 7

Patch Set 4 : Action review feedback. #

Total comments: 1

Patch Set 5 : Fix Windows compile error. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+253 lines, -38 lines) Patch
M Source/wtf/PartitionAlloc.h View 1 2 3 3 chunks +7 lines, -1 line 0 comments Download
M Source/wtf/PartitionAlloc.cpp View 1 2 3 4 5 chunks +137 lines, -35 lines 0 comments Download
M Source/wtf/PartitionAllocTest.cpp View 1 2 3 9 chunks +109 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (6 generated)
Chris Evans
4 years, 10 months ago (2015-06-19 23:23:25 UTC) #2
haraken
https://codereview.chromium.org/1197753003/diff/1/Source/wtf/PartitionAlloc.cpp File Source/wtf/PartitionAlloc.cpp (right): https://codereview.chromium.org/1197753003/diff/1/Source/wtf/PartitionAlloc.cpp#newcode1065 Source/wtf/PartitionAlloc.cpp:1065: static void partitionPageWalk(PartitionBucketMemoryStats* statsOut, const PartitionPage* page, bool discardMemory) ...
4 years, 10 months ago (2015-06-22 03:36:59 UTC) #3
Chris Evans
On 2015/06/22 03:36:59, haraken wrote: > https://codereview.chromium.org/1197753003/diff/1/Source/wtf/PartitionAlloc.cpp > File Source/wtf/PartitionAlloc.cpp (right): > > https://codereview.chromium.org/1197753003/diff/1/Source/wtf/PartitionAlloc.cpp#newcode1065 > ...
4 years, 10 months ago (2015-06-22 06:04:51 UTC) #4
haraken
> https://codereview.chromium.org/1197753003/diff/1/Source/wtf/PartitionAlloc.cpp#newcode1138 > > Source/wtf/PartitionAlloc.cpp:1138: discardSystemPages(ptr, discardable); > > > > I'm a bit afraid ...
4 years, 10 months ago (2015-06-22 08:32:40 UTC) #5
haraken
Mostly looks good; a final round of comments :) https://codereview.chromium.org/1197753003/diff/40001/Source/wtf/PartitionAlloc.cpp File Source/wtf/PartitionAlloc.cpp (right): https://codereview.chromium.org/1197753003/diff/40001/Source/wtf/PartitionAlloc.cpp#newcode1056 Source/wtf/PartitionAlloc.cpp:1056: ...
4 years, 10 months ago (2015-06-22 09:22:00 UTC) #6
Chris Evans
On 2015/06/22 09:22:00, haraken wrote: > Mostly looks good; a final round of comments :) ...
4 years, 10 months ago (2015-06-23 01:16:16 UTC) #7
haraken
LGTM Once bashi@ implements a framework to collect memory data with memory-infra, it would be ...
4 years, 10 months ago (2015-06-23 01:44:33 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1197753003/60001
4 years, 10 months ago (2015-06-23 02:17:55 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_compile_dbg on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/win_blink_compile_dbg/builds/48956)
4 years, 10 months ago (2015-06-23 02:36:38 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1197753003/80001
4 years, 10 months ago (2015-06-23 04:27:34 UTC) #16
commit-bot: I haz the power
4 years, 10 months ago (2015-06-23 04:59:02 UTC) #17
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=197626

Powered by Google App Engine
This is Rietveld 408576698