Skip to main content

Practice ยท 1 of 2

Pool Acquire and Exhaust

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.

Difficulty: advanced

Back to lesson: Practice: Practice: Pool Mechanics