12 ms·
> We divide the available memory in two equal parts, use one half as a working copy which accumulates useful objects and garbage, and then at some point switch
by riwsky 3y ago
> We divide the available memory in two equal parts, use one half as a working copy which accumulates useful objects and garbage, and then at some point switch the halves, copying the live objects (but not the garbage) over
So, generational garbage collection?
- spullara 3y agoNah, just a copying gc: http://www.cs.cornell.edu/courses/cs312/2003fa/lectures/sec24.htm http://www.cs.cornell.edu/courses/cs312/2003fa/lectures/sec2... Generational has more heaps where objects are promoted between them when they last longer.
- dontlaugh 3y agoMore specifically, semi space.
- esjeon 3y agoThere's no generation here. Just live or dead objects. It also sounds like they don't scan the pool, and instead just deep-copy the top-level state object.
- tankenmate 3y agoThink of it more like a blue / green object store; but each switch only copies over valid objects (for some definition of valid; in use, type checked, etc).