More RTFM for you
"_chkstk() increases the stack when needed by committing some of the pages previously reserved for the stack. If there is no more physical memory available for committed pages, _chkstk fails"
Conversation
"When you enter a function (VC++ with the stack checking enabled), it will call the _chkstk located in CHKSTK.ASM. This function does a stack page probing and causes the necessary pages of memory to be allocated using the guard page scheme, if possible."
1
1
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
Show replies

