mirror of
https://github.com/microsoft/mimalloc.git
synced 2024-12-30 23:43:39 +08:00
fix heap cookie and random order on initialization (issue #131)
This commit is contained in:
parent
b46bacc180
commit
74299646bb
@ -106,14 +106,14 @@ mi_heap_t _mi_heap_main = {
|
|||||||
MI_SMALL_PAGES_EMPTY,
|
MI_SMALL_PAGES_EMPTY,
|
||||||
MI_PAGE_QUEUES_EMPTY,
|
MI_PAGE_QUEUES_EMPTY,
|
||||||
NULL,
|
NULL,
|
||||||
0,
|
0, // thread id
|
||||||
0,
|
|
||||||
#if MI_INTPTR_SIZE==8 // the cookie of the main heap can be fixed (unlike page cookies that need to be secure!)
|
#if MI_INTPTR_SIZE==8 // the cookie of the main heap can be fixed (unlike page cookies that need to be secure!)
|
||||||
0xCDCDCDCDCDCDCDCDUL,
|
0xCDCDCDCDCDCDCDCDUL,
|
||||||
#else
|
#else
|
||||||
0xCDCDCDCDUL,
|
0xCDCDCDCDUL,
|
||||||
#endif
|
#endif
|
||||||
0,
|
0, // random
|
||||||
|
0, // page count
|
||||||
false // can reclaim
|
false // can reclaim
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user