/*
- * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
*
* Squid software is distributed under GPLv2+ license and includes
* contributions from numerous individuals and organizations.
pool->allChunks.insert(this, memCompChunks);
}
-MemPoolChunked::MemPoolChunked(const char *aLabel, size_t aSize) : MemImplementingAllocator(aLabel, aSize)
+MemPoolChunked::MemPoolChunked(const char *aLabel, size_t aSize) :
+ MemImplementingAllocator(aLabel, aSize) , chunk_size(0),
+ chunk_capacity(0), chunkCount(0), freeCache(0), nextFreeChunk(0),
+ Chunks(0), allChunks(Splay<MemChunk *>())
{
- chunk_size = 0;
- chunk_capacity = 0;
- chunkCount = 0;
- freeCache = 0;
- nextFreeChunk = 0;
- Chunks = 0;
- next = 0;
-
setChunkSize(MEM_CHUNK_SIZE);
#if HAVE_MALLOPT && M_MMAP_MAX
}
void
-MemPoolChunked::deallocate(void *obj, bool aggressive)
+MemPoolChunked::deallocate(void *obj, bool)
{
push(obj);
assert(meter.inuse.level > 0);