by obviouslynotme · 1y ago · 0 comments
Short-run programs are even easier. You just never deallocate and then exit(0).
Doesn't this techically happen with most of the modern allocators? They do a lot of work to avoid having to request new memory from the kernel as much as possible.
Like, every ~thousand malloc calls invoked (s)brk and that was it.
> Short-run programs are even easier. You just never deallocate and then exit(0).
What's special about "short-run"? If you deallocate only once, presumably just before you exit, then why do it at all?