Skip to main content

Command Palette

Search for a command to run...

How does Go handle garbage collection?

Published
•1 min read•View as Markdown
B
Senior Software Engineer | Backend, Cloud, Data, Machine Learning

Go handles garbage collection through a process known as "tracing". When the Go runtime detects that there is no more references to an object, it will trace the object to determine if it is reachable. If the object is not reachable, the runtime will garbage collect the object.

More from this blog

yesicbap

437 posts