mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-05 15:09:31 +03:00
use proper atomic initialization macros
This commit is contained in:
parent
e8664001f7
commit
baabc77503
1 changed files with 3 additions and 2 deletions
|
@ -19,7 +19,8 @@ const mi_page_t _mi_page_empty = {
|
|||
0,
|
||||
#endif
|
||||
0, // used
|
||||
NULL, 0, 0,
|
||||
NULL,
|
||||
ATOMIC_VAR_INIT(0), ATOMIC_VAR_INIT(0),
|
||||
0, NULL, NULL, NULL
|
||||
#if (MI_INTPTR_SIZE==8 && MI_SECURE>0) || (MI_INTPTR_SIZE==4 && MI_SECURE==0)
|
||||
, { NULL } // padding
|
||||
|
@ -81,7 +82,7 @@ const mi_heap_t _mi_heap_empty = {
|
|||
NULL,
|
||||
MI_SMALL_PAGES_EMPTY,
|
||||
MI_PAGE_QUEUES_EMPTY,
|
||||
NULL,
|
||||
ATOMIC_VAR_INIT(NULL),
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
|
|
Loading…
Add table
Reference in a new issue