#include <stdio.h>
#include <pmt_pool.h>
-static const int CACHE_LINE_SIZE = 64; // good guess
-
-
+static const int CACHE_LINE_SIZE = 64; // good guess
+static const int MAX_MESSAGES = 1024; // KLUDGE max number of messages in sys
+ // 0 -> no limit
#if MB_MESSAGE_LOCAL_ALLOCATOR
-static pmt_pool global_msg_pool(sizeof(mb_message), CACHE_LINE_SIZE);
+static pmt_pool
+global_msg_pool(sizeof(mb_message), CACHE_LINE_SIZE, 16*1024, MAX_MESSAGES);
void *
mb_message::operator new(size_t size)