Go Time: Golang, Software Engineering cover image

A deep dive into Go's stack

Go Time: Golang, Software Engineering

CHAPTER

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.

00:00
Transcript
Play full episode

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner