The Pedigree Project  0.1
Public Member Functions | Private Attributes | List of all members
MemoryPoolPressureHandler Class Reference

#include <MemoryPool.h>

+ Inheritance diagram for MemoryPoolPressureHandler:
+ Collaboration diagram for MemoryPoolPressureHandler:

Public Member Functions

 MemoryPoolPressureHandler (MemoryPool *pool)
 
virtual const String getMemoryPressureDescription ()
 
virtual bool compact ()
 

Private Attributes

MemoryPoolm_Pool
 

Detailed Description

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 41 of file MemoryPool.h.

Member Function Documentation

bool MemoryPoolPressureHandler::compact ( )
virtual

Called by MemoryPressureManager to request this handler to take action to reduce memory pressure.

Returns
true if pages were released, false otherwise.

Implements MemoryPressureHandler.

Definition at line 94 of file MemoryPool.cc.


The documentation for this class was generated from the following files: