> Io in zig is for “things that can block execution”. Things that could semantically cause a yield of any kind. Allocation is not one of those things.
The allocator may yield to the OS when requesting or releasing memory (e.g. sbrk, mmap, munmap)?
The allocator may yield to the OS when requesting or releasing memory (e.g. sbrk, mmap, munmap)?
So if you’re using an API like mmap like that you should think of it as IO (I don’t think you can, but am not sure).