diff options
author | Eli Zaretskii <eliz@gnu.org> | 2015-08-08 11:12:06 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2015-08-08 11:12:06 +0300 |
commit | 7afa4f300b9dc38bf3f33b18fa83bfe35e21a479 (patch) | |
tree | 032ab5a75ec1ff00cee51ffe6216fceb16a53e6c /lisp/emacs-lisp/byte-opt.el | |
parent | 35656b6fa473a4c422875a61d24ebb736c1be4e9 (diff) | |
download | emacs-7afa4f300b9dc38bf3f33b18fa83bfe35e21a479.tar.gz emacs-7afa4f300b9dc38bf3f33b18fa83bfe35e21a479.tar.bz2 emacs-7afa4f300b9dc38bf3f33b18fa83bfe35e21a479.zip |
Support recovery from C stack overflow on MS-Windows
* src/w32fns.c (w32_reset_stack_overflow_guard)
(stack_overflow_handler): New functions for handling C stack
overflow exceptions.
(my_exception_handler): Handle EXCEPTION_STACK_OVERFLOW exceptions
specially, and zero out except_addr if we do.
(globals_of_w32fns): Initialize dwMainThreadId in non-interactive
mode.
* src/sysdep.c [HAVE_STACK_OVERFLOW_HANDLING]: Add !WINDOWSNT to
the condition, as HAVE_STACK_OVERFLOW_HANDLING is now defined for
the MinGW build, but the code guarded by that is for Posix hosts.
* src/keyboard.c (command_loop) [WINDOWSNT]: Call
w32_reset_stack_overflow_guard.
* nt/inc/ms-w32.h (sigjmp_buf): New typedef.
(sigsetjmp): New macro.
(w32_reset_stack_overflow_guard): Declare the prototype.
* configure.ac (HAVE_STACK_OVERFLOW_HANDLING): Set to 1 for MinGW.
Diffstat (limited to 'lisp/emacs-lisp/byte-opt.el')
0 files changed, 0 insertions, 0 deletions