Remix.run Logo
entrope 38 minutes ago

I think ripgrep does avoid allocations in that innermost loop. That's why this report says all the crashes are associated with opendir() and its memory allocation: the opendir() call is outside of ripgrep's innermost loop but still runs often enough to trigger the race condition.

mort96 23 minutes ago | parent [-]

And that's why musl's allocator's performance isn't a huge concern for ripgrep