Re:Go: Severe memory problems on 32bit Linux
by ArbitraryLimits on Friday April 06, 2012 @11:26AM
(#3807476)
Can someone help me out here with a TL;DR? This is my first exposure ever to any technical aspect of Go, and this discussion makes it sound from this discussion like it doesn't use any tag bits in its pointers, but has its garbage collector run heuristics on the data it examines to see whether it "looks like text" to decide whether to collect it? I know that can't possibly be correct.
[ Parent
| on HN ]
Re:Go: Severe memory problems on 32bit Linux
by Arelius on Friday April 06, 2012 @12:27PM
(#3807791)
It's much simpler than that, it's called a conservative collector, It looks at every bit of data, at just pretends it is a pointer, if anything points to a valid allocated address, that address is retained. Otherwise, just like every collection when there are no references, the object is collected.
Re:Go: Severe memory problems on 32bit Linux
by petrohi on Friday April 06, 2012 @07:48PM
(#3809439)
Good explanation on wikipedia:
http://en.wikipedia.org/wiki/Garbage_collection_(computer_sc...