Why/where does this allocate?

I think this might be similar to this. If I remember correctly, wait() checks with the scheduler if any other tasks or libuv “events” are ready, and will switch to them / call libuv callbacks, so you might see allocations from those tasks here (but I might be terribly wrong, you have to check). There is this Ref{} allocation when you write to IO, so maybe thats it?

1 Like