diff --git a/lib/mm/pool.c b/lib/mm/pool.c index bb55ab3e0..06dc82eba 100644 --- a/lib/mm/pool.c +++ b/lib/mm/pool.c @@ -27,8 +27,8 @@ struct pool { void _align_chunk(struct chunk *c, unsigned alignment); struct chunk *_new_chunk(struct pool *p, size_t s); -/* Alignment needs to be 8 for Alpha */ -#define DEFAULT_ALIGNMENT 8 +/* by default things come out aligned for doubles */ +#define DEFAULT_ALIGNMENT __alignof__ (double) struct pool *create_pool(size_t chunk_hint) {