EHHeap

Heap dedicated for CatchableTypeArray/CatchableType/TypeDescriptor structs of cached _ThrowInfos. The heap is used to keep these structs tightly together, as they are referenced via 32-bit offsets from a common base. We simply use the heap's start as base (instead of the actual image base), and malloc() returns an offset. The allocated structs are all cached and never released, so this heap can only grow. The offsets remain constant after a grow, so it's only the base which may change.

Members

Functions

initialize
void initialize(size_t initialCapacity)
Undocumented in source. Be warned that the author may not have intended to support it.
malloc
size_t malloc(size_t size)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

base
void* base;
Undocumented in source.
capacity
size_t capacity;
Undocumented in source.
length
size_t length;
Undocumented in source.

Meta