mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-06 19:38:41 +03:00
implement arena exclusive heap allocation for dev
This commit is contained in:
parent
4fc597d4f4
commit
461df1e878
6 changed files with 54 additions and 22 deletions
|
@ -96,6 +96,7 @@ mi_decl_cache_align const mi_heap_t _mi_heap_empty = {
|
|||
MI_ATOMIC_VAR_INIT(NULL),
|
||||
0, // tid
|
||||
0, // cookie
|
||||
0, // arena id
|
||||
{ 0, 0 }, // keys
|
||||
{ {0}, {0}, 0, true }, // random
|
||||
0, // page count
|
||||
|
@ -132,6 +133,7 @@ mi_heap_t _mi_heap_main = {
|
|||
MI_ATOMIC_VAR_INIT(NULL),
|
||||
0, // thread id
|
||||
0, // initial cookie
|
||||
0, // arena id
|
||||
{ 0, 0 }, // the key of the main heap can be fixed (unlike page keys that need to be secure!)
|
||||
{ {0x846ca68b}, {0}, 0, true }, // random
|
||||
0, // page count
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue