title: Using tcmalloc/jemalloc with custom memory pool manager
body: <p>I would like to use a high performance general purpose allocator like <code>jemalloc</code>/<code>tcmalloc</code> with a memory pool. Is there a guide for doing this? I don't want to use <code>jemalloc</code>/<code>tcmalloc</code> as a drop-in replacement for <code>malloc</code>.</p>
  
  <p>I have memory pool that uses <code>libarena</code> and carves a largish memory area (2GB). I want to create fixed size objects pool like <code>gslice</code> on this arena for say 1 GB. (like the Bonwick slab allocator) and want to use the rest of the memory for variable sized general purpose allocation. I would like to have <code>jemalloc</code>/<code>tcmalloc</code> use this memory area. Is this possible? Any ideas as to how I can proceed? If there is an alternate library, I would like to hear about it as well.</p>