Skip to content

Instantly share code, notes, and snippets.

@Anshuman-02905
Created September 24, 2025 04:35
Show Gist options
  • Select an option

  • Save Anshuman-02905/5499b1475fe9ee2353f55c2ae60b57b0 to your computer and use it in GitHub Desktop.

Select an option

Save Anshuman-02905/5499b1475fe9ee2353f55c2ae60b57b0 to your computer and use it in GitHub Desktop.
Term Description
Concurrent Runs alongside your goroutines without stopping the world for long periods.
Tri-color Objects are tracked as:
• White = unreachable (candidate for GC)
• Gray = discovered, still need scanning
• Black = reachable, fully scanned
Mark-and-sweep The GC first marks all live objects (reachable from roots), then sweeps memory used by unreachable objects.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment