3 ms·
Is it that tough? Everything says Windows/MSVC isn't affected.
by IshKebab 9y ago
Is it that tough? Everything says Windows/MSVC isn't affected.
- mnarayan01 9y agoYes. I believe Windows requires you to specify a maximum reserved stack size in the program executable. That's...not going to happen for e.g. Linux.
- smhenderson 9y agoThat's correct and any of the various MS runtime libraries simply set it by default if you didn't. Thus this error[1] (in C) and this[2] (in VB). I remember these from pre-dotNet days but based on the second link it looks not much has changed in VB.net. [1]https://msdn.microsoft.com/en-us/library/aa264523(v=vs.60).aspx https://msdn.microsoft.com/en-us/library/aa264523(v=vs.60).a... [2]https://docs.microsoft.com/en-us/dotnet/visual-basic/language-reference/error-messages/out-of-stack-space https://docs.microsoft.com/en-us/dotnet/visual-basic/languag...
- clarry 9y agoThe reservation is not particularly relevant though.
- IshKebab 9y agoSo how does it detect stack overflows past that limit? Edit: Looks like a fix for LLVM being proposed (https://reviews.llvm.org/D9653 https://reviews.llvm.org/D9653) is just to probe every page that a stack allocation covers, rather than just the final one. Doesn't sound tough at all.