Re:Proposed New Go GC: Transaction-Oriented Collector
by thwd on Friday June 24, 2016 @02:14PM
(#11972095)
Note: "finalize"-hints in Go are just curly braces, which begin and end blocks. Variables local to the scope are "finalized" (i.e. collectable, assuming they live on the heap) when the block ends.
[ Parent
| on HN ]
Re:Proposed New Go GC: Transaction-Oriented Collector
by stcredzero on Friday June 24, 2016 @03:59PM
(#11972959)
Note: "finalize"-hints in Go are just curly braces, which begin and end blocks.
But sometimes objects will survive the close braces.
Re:Proposed New Go GC: Transaction-Oriented Collector
by thwd on Friday June 24, 2016 @07:36PM
(#11974334)
I'm not sure I understand: do you mean that they are collected after the program counter hits the last instruction of a given scope or are you implying that scope-local variables outlive their scope somehow?