by yakubin · 5y ago · 0 comments
What do you mean by that? Is there an overview somewhere about "aggressive free()" that I can read?
https://www.openbsd.org/papers/eurobsdcon2009/otto-malloc.pd...
https://undeadly.org/cgi?action=article;sid=20090106070242
https://news.ycombinator.com/item?id=3286254
https://web.archive.org/web/20111231094521/http://os-blog.co...
General architecture: https://utcc.utoronto.ca/~cks/space/blog/unix/SbrkVersusMmap
OpenBSD altered malloc/free to use mmap instead of sbrk.
This allowed free to remove larger allocations from the address space, which caught a lot of programs that were using memory after free.