|
|
|
|
|
by AndyKelley
825 days ago
|
|
For spawning a thread you're literally asking for the stack of the thread to be memory mapped. I fail to see how this is "behind your back". 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...