|
The Pedigree Project 0.1
|
#include <MemoryPool.h>
Inheritance diagram for MemoryPoolPressureHandler:
Collaboration diagram for MemoryPoolPressureHandler:Public Member Functions | |
| MemoryPoolPressureHandler (MemoryPool *pool) | |
| virtual const char * | getMemoryPressureDescription () |
| virtual bool | compact () |
Private Attributes | |
| MemoryPool * | m_Pool |
MemoryPoolPressureHandler - handles removing unused pages from a MemoryPool when memory pressure is seen on the system. Because MemoryPools tend to be full of bursty allocations, it's fairly typical to get a couple pages free.
Definition at line 43 of file MemoryPool.h.
| MemoryPoolPressureHandler::MemoryPoolPressureHandler | ( | MemoryPool * | pool | ) |
Definition at line 56 of file MemoryPool.cc.
|
virtual |
Definition at line 58 of file MemoryPool.cc.
|
virtual |
Called by MemoryPressureManager to request this handler to take action to reduce memory pressure.
Implements MemoryPressureHandler.
Definition at line 64 of file MemoryPool.cc.
References MemoryPool::trim().
|
virtual |
Returns static storage so describing a recovery action cannot itself allocate memory.
Implements MemoryPressureHandler.
Definition at line 60 of file MemoryPool.cc.
|
private |
Definition at line 53 of file MemoryPool.h.