webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Public Member Functions | Protected Member Functions | Friends | List of all members
WTF::MetaAllocator Class Referenceabstract

#include <MetaAllocator.h>

Inheritance diagram for WTF::MetaAllocator:
TestWebKitAPI::MetaAllocatorTest::SimpleTestAllocator

Classes

struct  Statistics
 

Public Member Functions

WTF_EXPORT_PRIVATE MetaAllocator (size_t allocationGranule, size_t pageSize=WTF::pageSize())
 
virtual WTF_EXPORT_PRIVATE ~MetaAllocator ()
 
WTF_EXPORT_PRIVATE RefPtr< MetaAllocatorHandleallocate (size_t sizeInBytes, void *ownerUID)
 
void trackAllocations (MetaAllocatorTracker *tracker)
 
size_t bytesAllocated ()
 
size_t bytesReserved ()
 
size_t bytesCommitted ()
 
WTF_EXPORT_PRIVATE Statistics currentStatistics ()
 
WTF_EXPORT_PRIVATE void addFreshFreeSpace (void *start, size_t sizeInBytes)
 
WTF_EXPORT_PRIVATE size_t debugFreeSpaceSize ()
 
LockgetLock ()
 
WTF_EXPORT_PRIVATE bool isInAllocatedMemory (const LockHolder &, void *address)
 
void dumpProfile ()
 
WTF_EXPORT_PRIVATE MetaAllocator (size_t allocationGranule, size_t pageSize=WTF::pageSize())
 
virtual WTF_EXPORT_PRIVATE ~MetaAllocator ()
 
WTF_EXPORT_PRIVATE RefPtr< MetaAllocatorHandleallocate (size_t sizeInBytes, void *ownerUID)
 
void trackAllocations (MetaAllocatorTracker *tracker)
 
size_t bytesAllocated ()
 
size_t bytesReserved ()
 
size_t bytesCommitted ()
 
WTF_EXPORT_PRIVATE Statistics currentStatistics ()
 
WTF_EXPORT_PRIVATE void addFreshFreeSpace (void *start, size_t sizeInBytes)
 
WTF_EXPORT_PRIVATE size_t debugFreeSpaceSize ()
 
LockgetLock ()
 
WTF_EXPORT_PRIVATE bool isInAllocatedMemory (const LockHolder &, void *address)
 
void dumpProfile ()
 
WTF_EXPORT_PRIVATE MetaAllocator (size_t allocationGranule, size_t pageSize=WTF::pageSize())
 
virtual WTF_EXPORT_PRIVATE ~MetaAllocator ()
 
WTF_EXPORT_PRIVATE RefPtr< MetaAllocatorHandleallocate (size_t sizeInBytes, void *ownerUID)
 
void trackAllocations (MetaAllocatorTracker *tracker)
 
size_t bytesAllocated ()
 
size_t bytesReserved ()
 
size_t bytesCommitted ()
 
WTF_EXPORT_PRIVATE Statistics currentStatistics ()
 
WTF_EXPORT_PRIVATE void addFreshFreeSpace (void *start, size_t sizeInBytes)
 
WTF_EXPORT_PRIVATE size_t debugFreeSpaceSize ()
 
LockgetLock ()
 
WTF_EXPORT_PRIVATE bool isInAllocatedMemory (const LockHolder &, void *address)
 
void dumpProfile ()
 

Protected Member Functions

virtual voidallocateNewSpace (size_t &numPages)=0
 
virtual void notifyNeedPage (void *page)=0
 
virtual void notifyPageIsFree (void *page)=0
 
virtual voidallocateNewSpace (size_t &numPages)=0
 
virtual void notifyNeedPage (void *page)=0
 
virtual void notifyPageIsFree (void *page)=0
 
virtual voidallocateNewSpace (size_t &numPages)=0
 
virtual void notifyNeedPage (void *page)=0
 
virtual void notifyPageIsFree (void *page)=0
 

Friends

class MetaAllocatorHandle
 

Constructor & Destructor Documentation

◆ MetaAllocator() [1/3]

WTF::MetaAllocator::MetaAllocator ( size_t  allocationGranule,
size_t  pageSize = WTF::pageSize() 
)

◆ ~MetaAllocator() [1/3]

WTF::MetaAllocator::~MetaAllocator ( )
virtual

◆ MetaAllocator() [2/3]

WTF_EXPORT_PRIVATE WTF::MetaAllocator::MetaAllocator ( size_t  allocationGranule,
size_t  pageSize = WTF::pageSize() 
)

◆ ~MetaAllocator() [2/3]

virtual WTF_EXPORT_PRIVATE WTF::MetaAllocator::~MetaAllocator ( )
virtual

◆ MetaAllocator() [3/3]

WTF_EXPORT_PRIVATE WTF::MetaAllocator::MetaAllocator ( size_t  allocationGranule,
size_t  pageSize = WTF::pageSize() 
)

◆ ~MetaAllocator() [3/3]

virtual WTF_EXPORT_PRIVATE WTF::MetaAllocator::~MetaAllocator ( )
virtual

Member Function Documentation

◆ addFreshFreeSpace() [1/3]

void WTF::MetaAllocator::addFreshFreeSpace ( void start,
size_t  sizeInBytes 
)

◆ addFreshFreeSpace() [2/3]

WTF_EXPORT_PRIVATE void WTF::MetaAllocator::addFreshFreeSpace ( void start,
size_t  sizeInBytes 
)

◆ addFreshFreeSpace() [3/3]

WTF_EXPORT_PRIVATE void WTF::MetaAllocator::addFreshFreeSpace ( void start,
size_t  sizeInBytes 
)

◆ allocate() [1/3]

RefPtr< MetaAllocatorHandle > WTF::MetaAllocator::allocate ( size_t  sizeInBytes,
void ownerUID 
)

◆ allocate() [2/3]

WTF_EXPORT_PRIVATE RefPtr<MetaAllocatorHandle> WTF::MetaAllocator::allocate ( size_t  sizeInBytes,
void ownerUID 
)

◆ allocate() [3/3]

WTF_EXPORT_PRIVATE RefPtr<MetaAllocatorHandle> WTF::MetaAllocator::allocate ( size_t  sizeInBytes,
void ownerUID 
)

◆ allocateNewSpace() [1/3]

virtual void* WTF::MetaAllocator::allocateNewSpace ( size_t numPages)
protectedpure virtual

◆ allocateNewSpace() [2/3]

virtual void* WTF::MetaAllocator::allocateNewSpace ( size_t numPages)
protectedpure virtual

◆ allocateNewSpace() [3/3]

virtual void* WTF::MetaAllocator::allocateNewSpace ( size_t numPages)
protectedpure virtual

◆ bytesAllocated() [1/3]

size_t WTF::MetaAllocator::bytesAllocated ( )
inline

◆ bytesAllocated() [2/3]

size_t WTF::MetaAllocator::bytesAllocated ( )
inline

◆ bytesAllocated() [3/3]

size_t WTF::MetaAllocator::bytesAllocated ( )
inline

◆ bytesCommitted() [1/3]

size_t WTF::MetaAllocator::bytesCommitted ( )
inline

◆ bytesCommitted() [2/3]

size_t WTF::MetaAllocator::bytesCommitted ( )
inline

◆ bytesCommitted() [3/3]

size_t WTF::MetaAllocator::bytesCommitted ( )
inline

◆ bytesReserved() [1/3]

size_t WTF::MetaAllocator::bytesReserved ( )
inline

◆ bytesReserved() [2/3]

size_t WTF::MetaAllocator::bytesReserved ( )
inline

◆ bytesReserved() [3/3]

size_t WTF::MetaAllocator::bytesReserved ( )
inline

◆ currentStatistics() [1/3]

WTF_EXPORT_PRIVATE Statistics WTF::MetaAllocator::currentStatistics ( )

◆ currentStatistics() [2/3]

WTF_EXPORT_PRIVATE Statistics WTF::MetaAllocator::currentStatistics ( )

◆ currentStatistics() [3/3]

MetaAllocator::Statistics WTF::MetaAllocator::currentStatistics ( )

◆ debugFreeSpaceSize() [1/3]

size_t WTF::MetaAllocator::debugFreeSpaceSize ( )

◆ debugFreeSpaceSize() [2/3]

WTF_EXPORT_PRIVATE size_t WTF::MetaAllocator::debugFreeSpaceSize ( )

◆ debugFreeSpaceSize() [3/3]

WTF_EXPORT_PRIVATE size_t WTF::MetaAllocator::debugFreeSpaceSize ( )

◆ dumpProfile() [1/3]

void WTF::MetaAllocator::dumpProfile ( )
inline

◆ dumpProfile() [2/3]

void WTF::MetaAllocator::dumpProfile ( )
inline

◆ dumpProfile() [3/3]

void WTF::MetaAllocator::dumpProfile ( )
inline

◆ getLock() [1/3]

Lock& WTF::MetaAllocator::getLock ( )
inline

◆ getLock() [2/3]

Lock& WTF::MetaAllocator::getLock ( )
inline

◆ getLock() [3/3]

Lock& WTF::MetaAllocator::getLock ( )
inline

◆ isInAllocatedMemory() [1/3]

WTF_EXPORT_PRIVATE bool WTF::MetaAllocator::isInAllocatedMemory ( const LockHolder ,
void address 
)

◆ isInAllocatedMemory() [2/3]

bool WTF::MetaAllocator::isInAllocatedMemory ( const LockHolder ,
void address 
)

◆ isInAllocatedMemory() [3/3]

WTF_EXPORT_PRIVATE bool WTF::MetaAllocator::isInAllocatedMemory ( const LockHolder ,
void address 
)

◆ notifyNeedPage() [1/3]

virtual void WTF::MetaAllocator::notifyNeedPage ( void page)
protectedpure virtual

◆ notifyNeedPage() [2/3]

virtual void WTF::MetaAllocator::notifyNeedPage ( void page)
protectedpure virtual

◆ notifyNeedPage() [3/3]

virtual void WTF::MetaAllocator::notifyNeedPage ( void page)
protectedpure virtual

◆ notifyPageIsFree() [1/3]

virtual void WTF::MetaAllocator::notifyPageIsFree ( void page)
protectedpure virtual

◆ notifyPageIsFree() [2/3]

virtual void WTF::MetaAllocator::notifyPageIsFree ( void page)
protectedpure virtual

◆ notifyPageIsFree() [3/3]

virtual void WTF::MetaAllocator::notifyPageIsFree ( void page)
protectedpure virtual

◆ trackAllocations() [1/3]

void WTF::MetaAllocator::trackAllocations ( MetaAllocatorTracker tracker)
inline

◆ trackAllocations() [2/3]

void WTF::MetaAllocator::trackAllocations ( MetaAllocatorTracker tracker)
inline

◆ trackAllocations() [3/3]

void WTF::MetaAllocator::trackAllocations ( MetaAllocatorTracker tracker)
inline

Friends And Related Function Documentation

◆ MetaAllocatorHandle


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