[zone] Alight zone allocations to 64 bytes

Since Ruamoko got vector types, zone's 8-byte alignment was no longer
sufficient due to hardware-enforced alignment requirements of the
underlying vector operations.

Fixes #28.
This commit is contained in:
Bill Currie 2022-06-05 01:17:32 +09:00
parent 2bb0f0c104
commit 4694ee693b

View file

@ -254,7 +254,7 @@ Z_TagMalloc (memzone_t *zone, size_t size, int tag)
// of sufficient size
size += sizeof (memblock_t); // account for size of block header
size += 4; // space for memory trash tester
size = (size + 7) & ~7; // align to 8-byte boundary
size = (size + 63) & ~63; // align to 64-byte boundary
base = rover = zone->rover;
start = base->prev;