microsoft / mimalloc

mimalloc is a compact general purpose allocator with excellent performance.
MIT License
10.45k stars 843 forks source link

Fix for #851 #852

Closed jkriegshauser closed 7 months ago

jkriegshauser commented 7 months ago

Fixes #851

daanx commented 7 months ago

I added a different fix but also starting to use __builtin_thread_pointer; I am still hesitant as it took time to make it work on many platforms and for example the __builtin_thread_pointer does not work on Apple M1. I hope the current logic will work on most platforms :-).