mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-07 15:59:32 +03:00
fix heap_main declaration
This commit is contained in:
parent
8755369301
commit
c820259f3b
1 changed files with 2 additions and 2 deletions
|
@ -138,7 +138,7 @@ mi_decl_cache_align const mi_heap_t _mi_heap_empty = {
|
||||||
MI_MEMID_STATIC
|
MI_MEMID_STATIC
|
||||||
};
|
};
|
||||||
|
|
||||||
static mi_decl_cache_align mi_heap_t heap_main;
|
extern mi_decl_hidden mi_decl_cache_align mi_heap_t heap_main;
|
||||||
|
|
||||||
static mi_decl_cache_align mi_tld_t tld_main = {
|
static mi_decl_cache_align mi_tld_t tld_main = {
|
||||||
0, // thread_id
|
0, // thread_id
|
||||||
|
@ -153,7 +153,7 @@ static mi_decl_cache_align mi_tld_t tld_main = {
|
||||||
MI_MEMID_STATIC // memid
|
MI_MEMID_STATIC // memid
|
||||||
};
|
};
|
||||||
|
|
||||||
static mi_decl_cache_align mi_heap_t heap_main = {
|
mi_decl_cache_align mi_heap_t heap_main = {
|
||||||
&tld_main, // thread local data
|
&tld_main, // thread local data
|
||||||
NULL, // exclusive arena
|
NULL, // exclusive arena
|
||||||
0, // initial cookie
|
0, // initial cookie
|
||||||
|
|
Loading…
Add table
Reference in a new issue