aboutsummaryrefslogtreecommitdiffstats
path: root/src/mem_pool.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2006-09-20 19:11:18 +0000
committerlloyd <[email protected]>2006-09-20 19:11:18 +0000
commit7e7f297ce96879d851446008540a5545b2501a3c (patch)
treee792a2c52a814be8ebe7df864d9c7268898db897 /src/mem_pool.cpp
parent7f1009ae3c52000e6b059d683f7c99bc2ef7eb04 (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/mem_pool.cpp')
-rw-r--r--src/mem_pool.cpp10
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()