I Thought My malloc Was Thread-Safe — I was wrongI recently built a custom memory allocator in C. What started as a learning exercise turned into something deeper when I tried to make it thread-safe. At one point everything looked right: locks in pl3 min read·under-the-hood.hashnode.dev1Apr 27