A Journey With Go
Published in

A Journey With Go

Go: How Does the Garbage Collector Mark the Memory?

Illustration created for “A Journey With Go”, made from the original Go Gopher, created by Renee French.

ℹ️ This article is based on Go 1.13. The notions about memory management discussed here are explained in my article “Go: Memory Management and Allocation.”

The Go garbage collector is responsible for collecting the memory that is not in use anymore. The implemented algorithm is a concurrent tri-color mark and sweep collector. In this article, we will see in detail the marking…

--

--

--

A Journey With Go Language Programming

Recommended from Medium

Writing more readable VS. less code

Knowledge Sharing in Dev Teams — a Problem that Needs Fixing

Dumping Pebble’s Firmware

Modify JSON Payloads by Script Mediator

R and radian on macOS and VSCode

Software Licensing

Case Study: Continuous Delivery at Facebook

What Php Frameworks You Should Use in 2021?

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Vincent Blanchon

Vincent Blanchon

French Gopher in Dubai

More from Medium

#GoroutineScoopTrap

A good summary of Go lang basic syntax

Build a Go KV Cache from Scratch in 20 minutes

How To Watch For File Change in Golang