AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
How to Shrink a Stack in a Go Routine
When the garbage collector shrinks the stack, does that happen when like after like a Go routine is kind of done being used or does it like happen at like a pause to go routine. At what point does that happen? Because you said we grow stacks when we hit like a function call. That's like a clean space to do it. So certainly if you are paused, so if your Go routine is not actually running, it could be run a bowl, but not allocated to a thread and actually running. In those cases, I believe that if it's at a clean stop, it can shrink the stack.