Thanks. Keep using an object that was passed to Pool.Put, you may have a data race to write and read that object. I think the data race is not as critical as dangling pointers.At least a program with data race is difficult to predict, dangling pointers may be used to run arbitrary code.
So the compiler auto mark some memory free can be use again can be worked as safe and fast language. -- 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. For more options, visit https://groups.google.com/d/optout.