Remove unused var and declare variables first to fix msvc build.
[mono/afaerber.git] / docs / stack-overflow.txt
blobf451923cac0ab746c4d775426b5ad76198f1ded7
1 Stack Overflow Detection
3         Mono supports converting a stack overflow into a
4         StackOverflowException that the user can use to 
5         pinpoint problems in his software.
7         The detection works by:
9               * Setting up a number of guard pages below a certain
10               point in the thread stack and unprotect them if we get a
11               segv there.
13               * If a segv is caught on those pages, control is
14                 transfered to the standard exception handling code.
16               * During the unwinding, the stack pages are protected
17                 again.