2 ms·
Is "Stack maps" the same as "segmented stacks" that Mr Cox refers to?
by wyldfire 11y ago
Is "Stack maps" the same as "segmented stacks" that Mr Cox refers to?
- riscy 11y agoNo, stack maps provide information about each stack frame (typically using the return instruction pointer left in that frame) to allow for the garbage collector to determine what is a pointer or not in that frame.
- DannyBee 11y agoSegmented stacks are basically what safestack offers, and that is also something llvm does :)
- riscy 11y agoNo it's not. Segmented stacks are a way of allocating smaller stack segments that are linked together with pointers and kept in the heap and is a means of implementing coroutines. Safestack is more complicated and it segregates the stack into 2 parts to prevent stack buffer overflow attacks.
- deleted 11y ago[deleted]
- kibwen 11y agoNote that Go no longer uses segmented stacks (and hasn't since 1.2). It uses contiguous, copyable stacks: http://agis.io/2014/03/25/contiguous-stacks-in-go.html http://agis.io/2014/03/25/contiguous-stacks-in-go.html