3 ms·
Heap allocated stacks require teaching the garbage collectors new tricks since they need to parse the frames for references, whereas those can be handle during
by aardvark179 8y ago
Heap allocated stacks require teaching the garbage collectors new tricks since they need to parse the frames for references, whereas those can be handle during the freeze/thaw operation if we copy the stack.
We think we can achieve the level of performance we want with stack copying.
- cryptonector 8y agoStack copying strikes me as oh so wrong... Anyways, allocating frames or stacks on the heap doesn't seem like it should require teaching the GC all that much. They would essentially be objects of such a class that the GC can traverse them... just like a normal stack (from current frame through return closures), which it already has to know how to do. Their location shouldn't be so important.