Anonymous · shared experience1 Oct 2025 · 4 views
Roblox: Bump allocator over one big memory chunk
Problem. Build a bump allocator. It grabs one large block of memory up front and hands out smaller pieces from it on request. When the remaining space cannot fit a request, it returns null.
What to think about. Keep a single offset pointer that only moves forward, check bounds before each allocation and decide how to handle alignment. Freeing single pieces is usually not supported; the whole block is reset at once.
Comments 0
No comments yet. Ask the author something, or add what happened in your own round.