Why golang garbage collector will recycle unused resource on the stack ? As I know, many language only recycle resource on the heap?

后端 未结 0 629
盖世英雄少女心
盖世英雄少女心 2021-01-17 17:21

Because most resource on the stack is local variables and the point of the function , which will be auto recycled when the function is called. So why golang still care about

相关标签:
回答
  • 消灭零回复
提交回复
热议问题