[MERGE] Split MemPool.cc into framework and allocators

From: Henrik Nordström <henrik_at_henriknordstrom.net>
Date: Sat, 29 May 2010 01:54:59 +0200

Version 2.

Statistics corrected. Never worked proper, and the Malloc pool type did
not get any statistics reported at all due to part of the statistics
being malplaced down in the chunked allocator instead of generic
framework where it belongs.

This change splits MemPool.cc into framework and specific allocators

MemPool.cc general framework
MemPoolChunked.cc chunked allocator
MemPoolMalloc.cc malloc allocator, no freelist (yet)

This also fixes some statistics bugs. There was some bad oddness there
with a bit of confusion between allocator local counters and MemMeter
counters, plus total confusion between allocation and saved allocation.

Next step is adding back the simple freelist to MemPoolMalloc.cc making
it a fullblown pooled allocator, configurable by squid.conf.

Regards
Henrik

Received on Fri May 28 2010 - 23:55:06 MDT

This archive was generated by hypermail 2.2.0 : Sat May 29 2010 - 12:00:12 MDT