PZPrajwal Zoreinunder-the-hood.hashnode.dev·Apr 27 · 3 min readI 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 pl10