32 void *
Alloc(
int size,
int unused);
41 void Free(
void *mem,
int size);
59 static int SizeToIndex(
int size);
68 static int IndexToSizeWords(
int index);
const int MAX_FIXED_ALLOCS
Size classes the chunk allocator serves, 16 bytes apart.
Definition ChunkAllocator.h:7
void Print(PrnStream &stream)
Print the use of every size class.
ChunkAllocator()
Create an allocator with no size class in use.
void Free(void *mem, int size)
Free an allocation of a size class.
void * Alloc(int size, int unused)
Allocate from the size class of a size, creating the class's allocator on first use.
Allocator of small blocks, with a FreeStore for each multiple of 16 bytes up to 2048.
Definition fixedsizealloc.h:12
Text output stream.
Definition prnstream.h:16