Descriptionbase: Add uncached malloc based discardable memory type.
Each DiscardableMemoryMalloc instance uses a separate malloc() allocated block
of memory. It's allocated on Lock() and freed on Unlock().
This is useful to test how discardable memory clients perform in situations
when the memory pressure is high. The base class will also be used by other
discardable memory implementations as a fall-back when failing to
allocate/lock native discardable memory.
BUG=334996
TEST=base_unittests --gtest_filter=DiscardableMemoryTests*
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=250167
Patch Set 1 #
Messages
Total messages: 7 (0 generated)
|