22 #ifndef ELF_MEMORY_MANAGER_H 23 #define ELF_MEMORY_MANAGER_H 25 #include "common/scummsys.h" 27 #if defined(DYNAMIC_MODULES) && defined(USE_ELF_LOADER) 29 #include "common/singleton.h" 30 #include "common/list.h" 31 #include "common/mutex.h" 39 #define ELFMemMan ELFMemoryManager::instance() 43 void trackPlugin(
bool value);
44 void trackAlloc(uint32 align, uint32 size);
48 void *pluginAllocate(uint32 size);
49 void *pluginAllocate(uint32 align, uint32 size);
50 void pluginDeallocate(
void *ptr);
58 void *allocateOnHeap(uint32 align, uint32 size);
59 void deallocateFromHeap(
void *ptr);
64 byte *end() {
return start + size; }
65 Allocation(byte *a, uint32 b) : start(a), size(b) {}
76 uint32 _measuredAlign;
80 uint32 _bytesAllocated;
Definition: singleton.h:42