by AndyKelley · 2y ago · 0 comments
You also linked specifically to the POSIX threads implementation of thread spawning, which is by definition supposed to play nicely with the libc posix threads API, which expects you to use the libc allocator in combination with POSIX threads API, so that's what it does.
You might as well accuse the mmap() function in the zig standard library of allocating behind your back.
1. https://ziglang.org/learn/why_zig_rust_d_cpp/#no-hidden-allo...
shouldn't X, exceptor for Y where it does [X]
It makes perfect sense that GP was saying "thread spawn allocates behind your back".