This can already be done using C.malloc and C.free. You won't have
access to map types using a Cgo allocator, but then you wouldn't if
you had to allocate using built-ins either.

On Sun, 2020-11-15 at 17:37 -0800, tapi...@gmail.com wrote:
> For example, by adding two new built-in functions: alloc and free,
> garbage collector will ignore the memory allocated by alloc. The
> memory allocated by alloc must be freed by calling the free function
> manually.
> 
> This would relieve the burden of GC for some Go programs (such as
> games).




-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/f24b2a031553e63231cfb156ad6ee43fd86c7687.camel%40kortschak.io.

Reply via email to