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

Issue 1155293007: Expose ReleaseFreeMemory to free up memory on memory pressure or idle cleanup. (Closed)

Created:
4 years, 11 months ago by ssid
Modified:
4 years, 10 months ago
CC:
blink-reviews, dglazkov+blink
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Expose ReleaseFreeMemory to free up memory on memory pressure or idle cleanup. Some unused memory maybe left committed by PartitionAlloc for performance reasons. This CL exposes api from blink to free up the memory at various situations like a low memory signal or invoked at idle cleanup. BUG=495171 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196675

Patch Set 1 #

Total comments: 2

Patch Set 2 : made changes. #

Total comments: 5

Patch Set 3 : Rename. #

Patch Set 4 : Refactoring PurgeMemory. #

Total comments: 2

Patch Set 5 : Adding comment in the public api. #

Patch Set 6 : Old comment doesn't make sense. removed it. #

Patch Set 7 : Fixing test calls. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -4 lines) Patch
M Source/web/WebKit.cpp View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M Source/wtf/PartitionAlloc.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M Source/wtf/PartitionAlloc.cpp View 1 2 3 2 chunks +13 lines, -1 line 0 comments Download
M Source/wtf/PartitionAllocTest.cpp View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M Source/wtf/Partitions.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M Source/wtf/Partitions.cpp View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download
M public/web/WebKit.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (8 generated)
ssid
4 years, 11 months ago (2015-06-02 14:45:18 UTC) #2
Primiano Tucci (use gerrit)
https://codereview.chromium.org/1155293007/diff/1/Source/web/WebKit.cpp File Source/web/WebKit.cpp (right): https://codereview.chromium.org/1155293007/diff/1/Source/web/WebKit.cpp#newcode293 Source/web/WebKit.cpp:293: void ReleaseFreeMemory() nit: lowercase r (releaseFreeMemory) https://codereview.chromium.org/1155293007/diff/1/Source/web/WebKit.cpp#newcode295 Source/web/WebKit.cpp:295: WTF::partitionPurgeMemory(WTF::Partitions::getBufferPartition()); ...
4 years, 11 months ago (2015-06-02 17:18:56 UTC) #3
ssid
Done.
4 years, 11 months ago (2015-06-03 10:58:16 UTC) #4
Primiano Tucci (use gerrit)
LGTM. It seems that the pattern that we are using already is expose the individual ...
4 years, 11 months ago (2015-06-03 11:09:23 UTC) #6
haraken
https://codereview.chromium.org/1155293007/diff/20001/Source/wtf/Partitions.cpp File Source/wtf/Partitions.cpp (right): https://codereview.chromium.org/1155293007/diff/20001/Source/wtf/Partitions.cpp#newcode79 Source/wtf/Partitions.cpp:79: spinLockLock(&getBufferPartition()->lock); Can we move this lock into partitionPurgeMemory? We ...
4 years, 11 months ago (2015-06-03 11:39:00 UTC) #7
ssid
Please see comment inline. https://codereview.chromium.org/1155293007/diff/20001/Source/wtf/Partitions.cpp File Source/wtf/Partitions.cpp (right): https://codereview.chromium.org/1155293007/diff/20001/Source/wtf/Partitions.cpp#newcode79 Source/wtf/Partitions.cpp:79: spinLockLock(&getBufferPartition()->lock); On 2015/06/03 11:39:00, haraken ...
4 years, 11 months ago (2015-06-03 11:45:31 UTC) #8
haraken
On 2015/06/03 11:45:31, ssid wrote: > Please see comment inline. > > https://codereview.chromium.org/1155293007/diff/20001/Source/wtf/Partitions.cpp > File ...
4 years, 11 months ago (2015-06-03 11:49:22 UTC) #9
Chris Evans
On 2015/06/03 11:49:22, haraken wrote: > On 2015/06/03 11:45:31, ssid wrote: > > Please see ...
4 years, 11 months ago (2015-06-05 06:18:41 UTC) #10
ssid
On 2015/06/05 06:18:41, Chris Evans wrote: > On 2015/06/03 11:49:22, haraken wrote: > > On ...
4 years, 11 months ago (2015-06-05 06:34:17 UTC) #11
ssid
Made changes, PTAL. https://codereview.chromium.org/1155293007/diff/20001/public/web/WebKit.h File public/web/WebKit.h (right): https://codereview.chromium.org/1155293007/diff/20001/public/web/WebKit.h#newcode89 public/web/WebKit.h:89: BLINK_EXPORT void releaseFreeMemory(); On 2015/06/03 11:39:00, ...
4 years, 11 months ago (2015-06-05 12:44:49 UTC) #12
ssid
Made changes, PTAL.
4 years, 11 months ago (2015-06-05 12:44:51 UTC) #13
Chris Evans
On 2015/06/05 12:44:51, ssid wrote: > Made changes, PTAL. LGTM
4 years, 11 months ago (2015-06-05 17:06:29 UTC) #14
Primiano Tucci (use gerrit)
LGTM thanks
4 years, 11 months ago (2015-06-05 17:18:22 UTC) #15
Primiano Tucci (use gerrit)
+rbyers for public/web/WebKit.h stamp (we miss an owner there)
4 years, 11 months ago (2015-06-05 17:25:58 UTC) #17
Rick Byers
public/ LGTM with nit https://codereview.chromium.org/1155293007/diff/60001/public/web/WebKit.h File public/web/WebKit.h (right): https://codereview.chromium.org/1155293007/diff/60001/public/web/WebKit.h#newcode88 public/web/WebKit.h:88: // Decommit freeable memory pages. ...
4 years, 11 months ago (2015-06-05 17:35:47 UTC) #18
Primiano Tucci (use gerrit)
https://codereview.chromium.org/1155293007/diff/60001/public/web/WebKit.h File public/web/WebKit.h (right): https://codereview.chromium.org/1155293007/diff/60001/public/web/WebKit.h#newcode88 public/web/WebKit.h:88: // Decommit freeable memory pages. On 2015/06/05 17:35:46, Rick ...
4 years, 11 months ago (2015-06-05 18:24:51 UTC) #19
Primiano Tucci (use gerrit)
Just to be clear, the only reason why we don't do this after every free ...
4 years, 11 months ago (2015-06-05 18:28:36 UTC) #20
Rick Byers
On 2015/06/05 18:28:36, Primiano Tucci wrote: > Just to be clear, the only reason why ...
4 years, 11 months ago (2015-06-05 18:40:12 UTC) #21
ssid
On 2015/06/05 18:40:12, Rick Byers wrote: > On 2015/06/05 18:28:36, Primiano Tucci wrote: > > ...
4 years, 11 months ago (2015-06-05 18:46:21 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1155293007/100001
4 years, 11 months ago (2015-06-05 18:47:05 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/57882)
4 years, 11 months ago (2015-06-05 19:00:09 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1155293007/120001
4 years, 10 months ago (2015-06-08 13:37:15 UTC) #30
commit-bot: I haz the power
4 years, 10 months ago (2015-06-08 13:40:54 UTC) #31
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=196675

Powered by Google App Engine
This is Rietveld 408576698