- np->pos = (guint8*)np + sizeof (MonoMemPool);
- np->size = sizeof (MonoMemPool) + size;
- np->end = np->pos + np->size - sizeof (MonoMemPool);
- pool->d.allocated += sizeof (MonoMemPool) + size;
- total_bytes_allocated += sizeof (MonoMemPool) + size;
- return (guint8*)np + sizeof (MonoMemPool);
+ np->pos = (guint8*)np + SIZEOF_MEM_POOL;
+ np->size = SIZEOF_MEM_POOL + size;
+ np->end = np->pos + np->size - SIZEOF_MEM_POOL;
+ pool->d.allocated += SIZEOF_MEM_POOL + size;
+ total_bytes_allocated += SIZEOF_MEM_POOL + size;
+ return (guint8*)np + SIZEOF_MEM_POOL;