Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / docs / stack-overflow.txt
1 Stack Overflow Detection
2
3         Mono supports converting a stack overflow into a
4         StackOverflowException that the user can use to 
5         pinpoint problems in his software.
6
7         The detection works by:
8
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.
12
13               * If a segv is caught on those pages, control is
14                 transfered to the standard exception handling code.
15
16               * During the unwinding, the stack pages are protected
17                 again.