Stack Overflow detection using Method 1

Could you please explain me more in detail how the Method 2 works ?
I have this configuration : portSTACK_GROWTH = -1