Skip to main content

Practice · 1 of 2

Pool Acquire and Exhaust

CHALLENGE
Difficulty: advanced+25 XP

Complete the fixed-size BytePool declared in the boilerplate. acquire() hands out block pointers and calls AllocTracker::noteAlloc() on success; it must return nullptr when the pool is exhausted. This challenge only tests acquire/exhaust behavior — release comes next.

Back to lesson: Practice: Practice: Pool Mechanics