mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
r19243@catbus: nickm | 2008-04-08 13:28:59 -0400
Use a freelist to hold a few recent memarea chunks. We do a kazillion memarea allocs and frees; that cant be good for us. svn:r14319
This commit is contained in:
@@ -18,6 +18,7 @@ const char main_c_id[] =
|
||||
#ifdef USE_DMALLOC
|
||||
#include <dmalloc.h>
|
||||
#endif
|
||||
#include "memarea.h"
|
||||
|
||||
void evdns_shutdown(int);
|
||||
|
||||
@@ -1858,6 +1859,7 @@ tor_free_all(int postfork)
|
||||
entry_guards_free_all();
|
||||
connection_free_all();
|
||||
buf_shrink_freelists(1);
|
||||
memarea_clear_freelist();
|
||||
if (!postfork) {
|
||||
config_free_all();
|
||||
router_free_all();
|
||||
|
||||
Reference in New Issue
Block a user