]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/sysdep.c (handle_sigsegv) [CYGWIN]: Increase STACK_DANGER_ZONE
authorKen Brown <kbrown@cornell.edu>
Mon, 6 Jul 2015 20:00:37 +0000 (16:00 -0400)
committerKen Brown <kbrown@cornell.edu>
Mon, 6 Jul 2015 20:01:46 +0000 (16:01 -0400)
src/sysdep.c

index 0a0b0ac01d006107972c63f8993e3bacb2c0b7dc..91036f07c58b592d9ef93f8efec96d22c715357e 100644 (file)
@@ -1646,7 +1646,14 @@ handle_sigsegv (int sig, siginfo_t *siginfo, void *arg)
 
       if (!getrlimit (RLIMIT_STACK, &rlim))
        {
+         /* STACK_DANGER_ZONE has to be bigger than 16K on Cygwin, for
+            reasons explained in
+            https://www.cygwin.com/ml/cygwin/2015-06/msg00381.html.  */
+#ifdef CYGWIN
+         enum { STACK_DANGER_ZONE = 32 * 1024 };
+#else
          enum { STACK_DANGER_ZONE = 16 * 1024 };
+#endif
          char *beg, *end, *addr;
 
          beg = stack_bottom;