the lost malloc()

33 points by spc476


danso

This was a good read! I love finding code from before K&R C, when the augmented-assignment operators were flipped (=+ instead of +=)

nelson

these malloc() and mfree() work on explicit memory regions! ... You could deallocate all its memory resources by just discarding the entire region you delegated to it.

This idea of a zone allocator keeps coming back. I've always wondered why it wasn't more popular in web servers, where it'd be natural to just bulk-free all memory after an HTTP request is done. I spent so much time tuning garbage collection in Java webapp servers and it was tempting to think it could all be trivialized.