2 ms·
How is that much different than just using malloc and then letting the OS clean up when the process exits?
by sgtnoodle 3y ago
How is that much different than just using malloc and then letting the OS clean up when the process exits?
- greiskul 3y agoBy having implicit arguments, a framework can decide when to override the implictness and be explicit to use a different arena when needed. Also, many process like servers are long lived, so the OS clean up strategy does not work for them, and they are exactly where you want some strategy for memory allocation like arenas to prevent memory fragmentation.