initialize thread_delayed_free field atomically

This commit is contained in:
daan 2020-01-16 16:45:34 -08:00
parent da709bcf11
commit 3f8b8b7a55
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ mi_heap_t _mi_heap_main = {
&tld_main,
MI_SMALL_PAGES_EMPTY,
MI_PAGE_QUEUES_EMPTY,
NULL,
ATOMIC_VAR_INIT(NULL),
0, // thread id
MI_INIT_COOKIE, // initial cookie
{ MI_INIT_COOKIE, MI_INIT_COOKIE }, // the key of the main heap can be fixed (unlike page keys that need to be secure!)