Why is Go's escape analysis behaving differently when simple type is passed to two different functions with same signature

前端 未结 0 1365
余生分开走
余生分开走 2021-01-05 04:40

I don\'t quite get why Go\'s escape analysis says that a local integer variable escapes to the heap when it is passed to fmt.Fprintln while it is not escaping w

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