struct pool_extent *next;
};
-#define MINALIGN (sizeof (void *))
+struct align_test {
+ void *foo;
+ uint64 bar;
+};
+
+#define MINALIGN offsetof(struct align_test, bar)
alloc_pool_t
pool_create(size_t size, size_t quantum,
{
struct alloc_pool *pool = (struct alloc_pool *) p;
if (!pool)
- {
- char *msg;
- if (asprintf(&msg, "pool_alloc(%s) on NULL pool", bomb) > 0)
- bomb = msg;
- goto bomb;
- }
+ return NULL;
if (!len)
len = pool->quantum;