> "Right now, there is low traffic on my server, I want the GC work right
> now."
You can do this by calling runtime.GC.
> Or "Hey GC, please delete this!".
This has been considered. However, it means that Go would no longer
be memory safe. Such a statement would only be useful if the memory
were freed without checking whether anything points to it. That means
that calling it might lead to dangling pointers. It would become a
dangerous nuisance.
Programs that need that level of control can implement their own
memory management.
> "GC, I make a break, you can work Until I come back"
With the concurrent GC in the upcoming 1.5 release, this might be
possible. We could have a way for a goroutine to indicate that it is
going to sleep and that the GC should scan the goroutine's stack now
in the expectation that it will remain asleep through the next real
GC. I don't know how much it would help, but it might be worth trying
in some cases.
Ian