0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-15 22:41:12 +01:00

ircd: Add fixed alignment to dynamic allocator for now.

This commit is contained in:
Jason Volk 2017-08-30 14:01:16 -07:00
parent 62a68d8931
commit fa0ad99df6

View file

@ -106,7 +106,7 @@ struct ircd::allocator::dynamic
,data_size{sizeof(T) * size + 16} ,data_size{sizeof(T) * size + 16}
,arena ,arena
{ {
new uint8_t[head_size + data_size] new __attribute__((aligned(16))) uint8_t[head_size + data_size]
} }
,buf ,buf
{ {