11 #ifndef __UT_SmallObject__
12 #define __UT_SmallObject__
36 #define UT_SMALLOBJECT_CLEANPAGES_DEFAULT true
37 #define UT_SMALLOBJECT_CLEANPAGES_ON true
38 #define UT_SMALLOBJECT_CLEANPAGES_OFF false
40 #define UT_SMALLOBJECT_PAGESIZE_DEFAULT 1024
42 #define UT_SMALLOBJECT_THREADSAFE_DEFAULT true
43 #define UT_SMALLOBJECT_THREADSAFE_ON true
44 #define UT_SMALLOBJECT_THREADSAFE_OFF false
46 #define UT_SMALLOBJECT_MAXOBJECTSIZE_DEFAULT 128
56 template <
class SubClass,
67 static void *
operator new(
size_t size)
71 static void operator delete(
void *p,
size_t size)
79 static void *
operator new(
size_t ,
void *p)
83 static void operator delete(
void *,
void *)
#define UT_SMALLOBJECT_PAGESIZE_DEFAULT
#define UT_SMALLOBJECT_MAXOBJECTSIZE_DEFAULT
#define UT_SMALLOBJECT_THREADSAFE_DEFAULT
static void * allocate(size_t bytes)
static void deallocate(void *p, size_t bytes)
#define UT_SMALLOBJECT_CLEANPAGES_DEFAULT