Feb 17, 2023
A thing to note in Go's GC is that it tries it's best to mark and sweep elements before a set time duration because it is going to stop-the-world while completing it's GC. So, it's a best effort garbage collection and not all objects maybe marked, depending on your configuration.