|
resonance 1.0.1
|
One named region the allocator hands blocks out of. More...
#include <zone.h>
Public Attributes | |
| void * | mBlock |
| char * | mStart |
| char * | mCur |
| int | mSize |
| char | mName [kZoneNameSize] |
One named region the allocator hands blocks out of.
A zone is a single tagged allocation that is then carved up by a bump pointer. Individual allocations are never released, so a zone is reclaimed either by rewinding the cursor with ZoneResetZone() or by releasing the whole region with ZoneDelete().
mBlock doubles as the slot's occupancy marker. A null mBlock marks a free slot.
| void* Zone::mBlock |
The tagged allocation, null while the slot is free. +0x00
| char* Zone::mStart |
mBlock rounded up to the 64-byte alignment. +0x04
| char* Zone::mCur |
The bump pointer, rewound to mStart by ZoneResetZone(). +0x08
| int Zone::mSize |
The usable size, which is the size ZoneCreate() requested. +0x0c
| char Zone::mName[kZoneNameSize] |
The zone name, as ZoneCreate() copied it. +0x10