Merge pull request #264 from DerVogel2020/dev

use stored pointer #257
This commit is contained in:
Daan 2020-07-21 18:35:51 -07:00 committed by GitHub
commit e5ede9c723
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -346,8 +346,8 @@ void mi_thread_init(void) mi_attr_noexcept
// don't further initialize for the main thread
if (_mi_is_main_thread()) return;
mi_heap_t* heap = mi_get_default_heap();
if (mi_heap_is_initialized(heap)) { _mi_stat_increase(&mi_get_default_heap()->tld->stats.threads, 1); }
mi_heap_t* const heap = mi_get_default_heap();
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());
}