mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-10 01:09:31 +03:00
Compare commits
2 commits
2d194a0e7c
...
648d7715f0
Author | SHA1 | Date | |
---|---|---|---|
![]() |
648d7715f0 | ||
![]() |
1cede1c9ee |
1 changed files with 1 additions and 0 deletions
|
@ -207,6 +207,7 @@ static void mi_heap_main_init(void) {
|
||||||
if (_mi_heap_main.cookie == 0) {
|
if (_mi_heap_main.cookie == 0) {
|
||||||
_mi_heap_main.thread_id = _mi_thread_id();
|
_mi_heap_main.thread_id = _mi_thread_id();
|
||||||
_mi_heap_main.cookie = 1;
|
_mi_heap_main.cookie = 1;
|
||||||
|
mi_thread_init();
|
||||||
#if defined(_WIN32) && !defined(MI_SHARED_LIB)
|
#if defined(_WIN32) && !defined(MI_SHARED_LIB)
|
||||||
_mi_random_init_weak(&_mi_heap_main.random); // prevent allocation failure during bcrypt dll initialization with static linking
|
_mi_random_init_weak(&_mi_heap_main.random); // prevent allocation failure during bcrypt dll initialization with static linking
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Add table
Reference in a new issue