diff options
author | lloyd <[email protected]> | 2006-09-20 19:11:18 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-09-20 19:11:18 +0000 |
commit | 7e7f297ce96879d851446008540a5545b2501a3c (patch) | |
tree | e792a2c52a814be8ebe7df864d9c7268898db897 /src | |
parent | 7f1009ae3c52000e6b059d683f7c99bc2ef7eb04 (diff) |
Do not allocate a block of memory in Pooling_Allocator::init(); this was
causing allocators that were never used to allocate (and thus, later
deallocate) memory. This was causing a noticable slowdown when the mmap
based allocator was in used (based on the strace output, this was mostly
due to the calls to msync).
Diffstat (limited to 'src')
-rw-r--r-- | src/mem_pool.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/mem_pool.cpp b/src/mem_pool.cpp index e327b3473..870365412 100644 --- a/src/mem_pool.cpp +++ b/src/mem_pool.cpp @@ -148,16 +148,6 @@ Pooling_Allocator::~Pooling_Allocator() } /************************************************* -* Allocate some initial buffers * -*************************************************/ -void Pooling_Allocator::init() - { - Mutex_Holder lock(mutex); - - get_more_core(PREF_SIZE); - } - -/************************************************* * Free all remaining memory * *************************************************/ void Pooling_Allocator::destroy() |