1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 20:18:12 +00:00

LibC: Make sure malloc chunks are 8-byte aligned

I noticed this while doing some instruction-level debugging. :^)
This commit is contained in:
Andreas Kling 2020-07-21 22:47:51 +02:00
parent a819c35904
commit 223b96c820

View file

@ -116,7 +116,7 @@ struct ChunkedBlock
ChunkedBlock* m_next { nullptr };
FreelistEntry* m_freelist { nullptr };
unsigned short m_free_chunks { 0 };
unsigned char m_slot[0];
[[gnu::aligned(8)]] unsigned char m_slot[0];
void* chunk(size_t index)
{