3 ms·
Not if you have to check for stack space, like Go does. It's no coincidence that a bump allocator and a function prologue have exactly the same structure: chec
by pcwalton 8y ago
Not if you have to check for stack space, like Go does.
It's no coincidence that a bump allocator and a function prologue have exactly the same structure: check against a limit and bump a thread-local pointer. There are runtimes like Chicken Scheme that actually implement heaps using the stack!