aboutsummaryrefslogtreecommitdiffstats
path: root/include/mem_pool.h
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 /include/mem_pool.h
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 'include/mem_pool.h')
-rw-r--r--include/mem_pool.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/mem_pool.h b/include/mem_pool.h
index e365cd29d..0665eac9c 100644
--- a/include/mem_pool.h
+++ b/include/mem_pool.h
@@ -23,7 +23,6 @@ class Pooling_Allocator : public Allocator
void* allocate(u32bit);
void deallocate(void*, u32bit);
- void init();
void destroy();
Pooling_Allocator(u32bit, bool);