Code With Go
  • Code With Go
  • 01. What, Who, Why and Where?
  • 02. Compiled vs Interpreted languages
  • 03. Types of Type!
  • 04. Stack and Heap Memory
  • 05. Garbage Collection
  • 06. About Go
  • 07. Go Playground
  • 08. Hello, World!
  • 09. Installing Go
  • 10. Variables
  • 11. Constants
  • 12. Integers
  • 12. Floats
  • 13. Boolean
  • 14. Strings
  • 15. Complex Numbers
  • 16. If Else
  • 17. Switch
  • 18. For
  • 19. User Defined Types
  • 20. Arrays
  • 21. Slices
  • 22. Structs
  • 23. Maps
  • 24. Functions
  • 25. Defer
  • 26. Pointers
  • 27. Methods
  • Resources
    • Resources - Paid
    • Resources - Free
Powered by GitBook
On this page
  • What is Garbage Collection?
  • Blog Posts
  • Video Resources

Was this helpful?

05. Garbage Collection

Cleaning up!

Previous04. Stack and Heap MemoryNext06. About Go

Last updated 5 years ago

Was this helpful?

What is Garbage Collection?

Whenever we are working with heap memory, we as programmer are responsible for managing memory. Managing heap memory has traditionally been difficult task. This is the case with traditional programming languages like C,C++.

Microsoft: 70 percent of all security bugs are memory safety issues - ZDNet

source :

Since memory management has been tedious tasks, various programming languages have evolved to provide these features. C#, Java, Python all provides memory management as a feature so that programmer has no longer to worry about memory management.

The feature of language to manage memory for programmer is called Garbage collection. Garbage collection can be thought as a side running program that manages heap allocation and de-allocation.

Blog Posts

Video Resources

https://www.zdnet.com/article/microsoft-70-percent-of-all-security-bugs-are-memory-safety-issues/
Garbage Collection In Go : Part I - Semantics
Logo
Garbage Collection In Go : Part II - GC Traces
Logo
Garbage Collection In Go : Part III - GC Pacing
Logo
Getting to Go: The Journey of Go's Garbage Collector - The Go Programming Languagegolang
Logo
How to be sympathetic with the Go garbage collector, regardless of the current implementation or how it changes in the future
Golang UK Conference 2017 | Will Sewell & Jim Fisher - Golang's Realtime GC in Theory and Practice