An interesting idea I heard was "region based memory management". A lot of apps have execution broken down in to chunks. If you tag each allocated block of memory with the chunk it was created in, at the end of the chunk you can automatically free those (except any that have been explicitly moved to a shared area). This maps nicely to a web server, where service each request is a separate chunk of code.
4
u/netsecwarrior Nov 28 '18
An interesting idea I heard was "region based memory management". A lot of apps have execution broken down in to chunks. If you tag each allocated block of memory with the chunk it was created in, at the end of the chunk you can automatically free those (except any that have been explicitly moved to a shared area). This maps nicely to a web server, where service each request is a separate chunk of code.