Descriptionbase: Avoid purging more discardable memory than necessary.
In situations when discardable memory usage is above the limit,
instead of purging the amount of memory that we would try to
reclaim under moderate memory pressure, purge only what is
necessary to stay below the limit.
This simplifies the code and makes it easier to understand how
memory is purged as a result of reaching the memory limit.
BUG=237681
TEST=base_unittests --gtest_filter=DiscardableMemoryProviderPermutationTests/DiscardableMemoryProviderPermutationTest.LRUDiscardedAmount/*
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=234652
Patch Set 1 #
Total comments: 2
Patch Set 2 : better comment #
Messages
Total messages: 8 (0 generated)
|