stack-overflow.txt 535 B

1234567891011121314151617
  1. Stack Overflow Detection
  2. Mono supports converting a stack overflow into a
  3. StackOverflowException that the user can use to
  4. pinpoint problems in his software.
  5. The detection works by:
  6. * Setting up a number of guard pages below a certain
  7. point in the thread stack and unprotect them if we get a
  8. segv there.
  9. * If a segv is caught on those pages, control is
  10. transfered to the standard exception handling code.
  11. * During the unwinding, the stack pages are protected
  12. again.