Hacker News new | ask | show | jobs
by jimohalloranau 1719 days ago
If there's no stack size limit, there's no stack overflow. And if there's no Stack Overflow where do we get our codez?
2 comments

If there's no limit, the things that would overflow will generally just eat memory until you OOM, so not really that different.
Wrong. Without fixed stack size limits you can tune heap vs stack usage dynamically. Eg allow deeper recursions when needing less heap memory. Eg it would allow longer lists. Stack overflows would need to be checked dynamically against the brk.