You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[v3] "returned TLS index was too high" due to incorrect interpretation of TlsAlloc return value #1359
changed the title [-]"returned TLS index was too high" due to incorrect interpretation of TlsAlloc return value[/-][+][v3] "returned TLS index was too high" due to incorrect interpretation of TlsAlloc return value[/+]on Aug 6, 2026
Yes, for the fast win32 TLS model we assume the standard TlsAlloc implementation. This is quite unlikely to ever change though :-)
But if you want to stay fully standard, just pass -DMI_TLS_MODEL_LOCAL=ON and mimalloc will use standard thread local variables without using TlsAlloc. Let me know how it goes.
Activity
[-]"returned TLS index was too high" due to incorrect interpretation of TlsAlloc return value[/-][+][v3] "returned TLS index was too high" due to incorrect interpretation of TlsAlloc return value[/+]NarutoUA commentedon Aug 6, 2026
I had my application added to "Application Verifier" with TLS checks enabled, which made TlsAlloc return huge value.
daanx commentedon Aug 8, 2026
Yes, for the fast win32 TLS model we assume the standard TlsAlloc implementation. This is quite unlikely to ever change though :-)
But if you want to stay fully standard, just pass
-DMI_TLS_MODEL_LOCAL=ONand mimalloc will use standard thread local variables without using TlsAlloc. Let me know how it goes.