mirror of
https://github.com/microsoft/mimalloc.git
synced 2024-12-28 05:50:51 +08:00
commit
e5ede9c723
@ -346,8 +346,8 @@ void mi_thread_init(void) mi_attr_noexcept
|
|||||||
// don't further initialize for the main thread
|
// don't further initialize for the main thread
|
||||||
if (_mi_is_main_thread()) return;
|
if (_mi_is_main_thread()) return;
|
||||||
|
|
||||||
mi_heap_t* heap = mi_get_default_heap();
|
mi_heap_t* const heap = mi_get_default_heap();
|
||||||
if (mi_heap_is_initialized(heap)) { _mi_stat_increase(&mi_get_default_heap()->tld->stats.threads, 1); }
|
if (mi_heap_is_initialized(heap)) { _mi_stat_increase(&heap->tld->stats.threads, 1); }
|
||||||
|
|
||||||
//_mi_verbose_message("thread init: 0x%zx\n", _mi_thread_id());
|
//_mi_verbose_message("thread init: 0x%zx\n", _mi_thread_id());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user