Why bother with stack sizes?
Why bother, really?
On 64-bit architectures OS can assign ludicrously large address space to each stack, then map new pages to the virtual memory on demand.
So why do we have limited stack sizes?
Is it just to be able to better identify segfaults?
Or is it just to keep backward compatibility with architectures with no virtual memory?
This is especially interesting in the context of split stacks: If the stacks were unlimited, split stacks would be a solution to a non-existent problem. Or am I wrong?
链接地址: http://www.djcxy.com/p/14094.html上一篇: 为什么堆栈段的大小比ulimit小得多
下一篇: 为什么要考虑堆栈大小?