So while your supposedly source materials are correct, you interpreted it wrong, and your statement ("This exception is usually caught by the _chkstk routine") is simply just wrong. Nothing in those links and quotes says anything equivalent to that.
Conversation
The doc literally says "_chkstk() increases the stack when needed by committing some of the pages previously reserved for the stack". How did you miss that?
3
1
I did provide a source in the other tweet reply, but here it is again. You will find a lot more in stackoverflow if you simply google it.
1
1
1
I think you are confusing _chkstk from MingwGCC with __chkstk from VC++. Both are different.
1
1
Ultimately, it does not matter how one does the stack probe. Some do the allocation inside, some do it outside the probe function. Gcc can inline it too. You can also use your own probing function. It does not matter how the pages are touched, they just need to be written. 3/
Show replies

