is there a way to free memory explicitly in Go? Some languages that also have a GC support this such as Oberon or D. The idea is to be able to help yourself in case some upper memory bounds are reached when using the GC alone.
If you really need to do this, which you probably don't- allocate a big block of memory (a byte array or use mmap) and write a custom allocator with an alloc and free function using "unsafe" that uses that block as its backing pool....
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.