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:
parent
a819c35904
commit
223b96c820
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue