3min chapter

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

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode