DescriptionAdd OnPurgeMemory() to MemoryCoordinatorClient
Before this CL, MemoryCoordinatorClient has only one callback called
OnMemoryStateChange(). Clients try to free up memory when state change
happens (e.g. NORMAL -> SUSPENDED). This may not be a good strategy on
some platforms because we may touch compressed pages (see [1] for details).
This CL add another callback called OnPurgeMemory() to separate logic
for purging existing memory from memory state changes. This way we can
build flexible strategies for handling memory pressure.
[1] https://groups.google.com/a/chromium.org/forum/?utm_medium=email&utm_source=footer#!msg/project-trim/s96xSirL2Hs/18uq1zfHEgAJ
BUG=684287
Review-Url: https://codereview.chromium.org/2655083003
Cr-Commit-Position: refs/heads/master@{#446951}
Committed: https://chromium.googlesource.com/chromium/src/+/a7f5cbbe7f704ea74d57b7413a7b10b7a1b68750
Patch Set 1 #
Total comments: 8
Patch Set 2 : comments #
Total comments: 2
Patch Set 3 : comment #Patch Set 4 : comment #
Messages
Total messages: 27 (17 generated)
|