rewrite of low-level OS (aligned) allocation to better handle large pages and aligned allocation

This commit is contained in:
daan 2019-07-03 14:52:32 -07:00
parent 7b4f3591f0
commit c3a5f84ad3
2 changed files with 225 additions and 232 deletions

View file

@ -103,7 +103,11 @@ mi_heap_t _mi_heap_main = {
NULL,
0,
0,
0xCDCDCDCDCDCDCDL,
#if MI_INTPTR_SIZE==8 // the cookie of the main heap can be fixed (unlike page cookies that need to be secure!)
0xCDCDCDCDCDCDCDCDUL,
#else
0xCDCDCDCDUL,
#endif
0,
false // can reclaim
};