News for hackers. Stuff that matters.
Re:Leveraging Zig's Allocators by tapirl on Tuesday June 18, 2024 @03:13AM (#40714936)
The arena allocator implementation for general uses absolutely should not do the zero work. This is specific use case, which can be implemented in an app-specific custom allocator.
Re:Leveraging Zig's Allocators by alexchamberlain on Tuesday June 18, 2024 @04:20AM (#40715311)
That's not what I said. My point was that an arena allocator has to be managed at a relatively high level. Similarly, an allocator responsible for 0 on free would be managed at a similar level. They are orthogonal concepts as you say, but there's no reason 0 on free can't be managed by an allocator.