Practice free →
Home › Per Gregory + Acton, a STACK / LINEAR allocator …

Per Gregory + Acton, a STACK / LINEAR allocator for frame data clears memory by which mechanism?

AResetting the bump pointer (no per-object free)
BCalling delete on every object individually
CTagging every allocation and freeing by tag
DCompacting the heap via GC pass on a stop
Answer & Solution
Correct answer: A. Resetting the bump pointer (no per-object free)
Gregory Ch. 6 Memory + Acton DOD: bump-allocator returns ptr += size; reset moves ptr back to base each frame. ~1-cycle alloc, zero free cost.
Solve this in the app — Practice practice & 24k+ MCQs →
Related questions