mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-15 03:29:31 +03:00
Merge branch 'dev' into dev3
This commit is contained in:
commit
251d40945b
1 changed files with 5 additions and 5 deletions
|
@ -664,12 +664,12 @@ static void mi_win_tls_init(DWORD reason) {
|
|||
if (reason==DLL_PROCESS_ATTACH || reason==DLL_THREAD_ATTACH) {
|
||||
if (mi_prim_get_default_heap() == NULL) {
|
||||
_mi_heap_set_default_direct((mi_heap_t*)&_mi_heap_empty);
|
||||
}
|
||||
#if MI_DEBUG && MI_WIN_USE_FIXED_TLS==1
|
||||
void* const p = TlsGetValue((DWORD)(_mi_win_tls_offset / sizeof(void*)));
|
||||
mi_assert_internal(p == (void*)&_mi_heap_empty);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
#else
|
||||
MI_UNUSED(reason);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue