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:
parent
62a68d8931
commit
fa0ad99df6
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue