You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mi_bitmap_field_tblocks_inuse[1]; // in-place bitmap of in-use blocks (of size `field_count`)
// A memory arena descriptortypedefstructmi_arena_s {
//…………mi_bitmap_field_tblocks_inuse[1]; // in-place bitmap of in-use blocks (of size `field_count`)// add a comment here: do not add custom field after `blocks_inuse` field because the bitmat array bounds will overflow and override its later fields. check https://github.com/microsoft/mimalloc/blob/81a771161e37c8559c442fff099115cd1977db1e/src/arena.c#L903C3-L903C8
} mi_arena_t;
Array out of bounds is not a well-defined behaviour and should be documented explicitly, or people (like me) may waste some time on it……
Thanks for this awesome project anyway.
The text was updated successfully, but these errors were encountered:
Dear maintainer:
Hello, I suggest to add a comment right after
mimalloc/src/arena.c
Line 59 in 81a7711
Array out of bounds is not a well-defined behaviour and should be documented explicitly, or people (like me) may waste some time on it……
Thanks for this awesome project anyway.
The text was updated successfully, but these errors were encountered: