aboutsummaryrefslogtreecommitdiffstats
path: root/mem_pool.h
Commit message (Collapse)AuthorAgeFilesLines
* * Reorganize structure of source filesVsevolod Stakhov2008-11-011-61/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Adopt build system for new structure --HG-- rename : cfg_file.h => src/cfg_file.h rename : cfg_file.l => src/cfg_file.l rename : cfg_file.y => src/cfg_file.y rename : cfg_utils.c => src/cfg_utils.c rename : controller.c => src/controller.c rename : filter.c => src/filter.c rename : filter.h => src/filter.h rename : fstring.c => src/fstring.c rename : fstring.h => src/fstring.h rename : main.c => src/main.c rename : main.h => src/main.h rename : mem_pool.c => src/mem_pool.c rename : mem_pool.h => src/mem_pool.h rename : memcached-test.c => src/memcached-test.c rename : memcached.c => src/memcached.c rename : memcached.h => src/memcached.h rename : perl.c => src/perl.c rename : perl.h => src/perl.h rename : plugins/regexp.c => src/plugins/regexp.c rename : plugins/surbl.c => src/plugins/surbl.c rename : protocol.c => src/protocol.c rename : protocol.h => src/protocol.h rename : upstream.c => src/upstream.c rename : upstream.h => src/upstream.h rename : url.c => src/url.c rename : url.h => src/url.h rename : util.c => src/util.c rename : util.h => src/util.h rename : worker.c => src/worker.c
* * Add determining page size function to mem_pool libraryVsevolod Stakhov2008-10-261-0/+3
| | | | * Add simple statistic structure that is placed in shared memory and used for gathering server's stats
* * Add support of shared memory chunks to memory pool allocator. Also add ↵Vsevolod Stakhov2008-10-161-0/+15
| | | | | | locking support (spin mutexes) * Add simple test case for shared memory allocation
* * Implement destructors stack in memory pool, so there is nowcebka@mailsupport.rambler.ru2008-10-141-4/+14
| | | | | | | convinient way to free objects in pool that was allocated by other memory allocation mechanics (e.g. GObject). Destructors must be added in pool manually by calling memory_pool_add_destructor function.
* * Rework config file memory allocation to separate memory pool for easy ↵cebka@mailsupport.rambler.ru2008-09-241-0/+1
| | | | | | | reloading without calling of ~1000 free syscalls * Add memory_pool_alloc0 for initializing newly allocated space in pool with zeroes
* * Small updates to memory pool librarycebka@mailsupport.rambler.ru2008-09-231-1/+10
| | | | | | | | | - fix cases when new chunk is allocated - add memory pool allocator statistics - let it work in multi-threaded environment - add strdup function for convinience * Use memory pool allocator more widely to avoid memory leaks in future and optimize performance * Task pool chunk size is now pre-defined constant (16 Kb currently)
* * Optimize memory pools allocatorcebka@mailsupport.rambler.ru2008-09-221-5/+8
| | | | * Add test case for memory pools
* * Avoid realloc for memory pools by making memory pool chainscebka@mailsupport.rambler.ru2008-09-181-2/+4
|
* * Add memory pool support.cebka@mailsupport.rambler.ru2008-09-181-0/+18
- memory pools would be used in modules for allocating task specific data without freeing it separately - memory pools growth is implemented as multiplying by 2 its length (for avoiding multiply reallocs) - when memory pool is freed all data that was allocated from this pool is freed too