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
bc18e9456e
1 changed files with 1 additions and 1 deletions
|
@ -658,7 +658,7 @@ mi_decl_cache_align size_t _mi_win_tls_offset = 0;
|
|||
static void mi_win_tls_init(DWORD reason) {
|
||||
if (reason==DLL_PROCESS_ATTACH || reason==DLL_THREAD_ATTACH) {
|
||||
#if MI_WIN_USE_FIXED_TLS==1 // we must allocate a TLS slot dynamically
|
||||
if (_mi_win_tls_offset == 0 && reason=DLL_PROCESS_ATTACH) {
|
||||
if (_mi_win_tls_offset == 0 && reason == DLL_PROCESS_ATTACH) {
|
||||
const DWORD tls_slot = TlsAlloc(); // usually returns slot 1
|
||||
if (tls_slot == TLS_OUT_OF_INDEXES) {
|
||||
_mi_error_message(EFAULT, "unable to allocate the a TLS slot (rebuild without MI_WIN_USE_FIXED_TLS?)\n");
|
||||
|
|
Loading…
Add table
Reference in a new issue