0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.1.1618: Amiga-like systems quickly run out of stack

Problem:    Amiga-like systems quickly run out of stack.
Solution:   Reserve a Megabyte stack. (Ola Söder, closes #4608)
This commit is contained in:
Bram Moolenaar
2019-07-02 23:22:43 +02:00
parent d529ba58dc
commit 9ee3d161f7
2 changed files with 13 additions and 0 deletions

View File

@@ -60,6 +60,17 @@
#endif /* PROTO */ #endif /* PROTO */
/*
* Set stack size to 1 MiB on NG systems. This should be enough even for
* hungry syntax HL / plugin combinations. Leave the stack alone on OS 3
* and below, those systems might be low on memory.
*/
#if defined(__amigaos4__)
static const char* __attribute__((used)) stackcookie = "$STACK: 1048576";
#elif defined(__AROS__) || defined(__MORPHOS__)
unsigned long __stack = 1048576;
#endif
/* /*
* At this point TRUE and FALSE are defined as 1L and 0L, but we want 1 and 0. * At this point TRUE and FALSE are defined as 1L and 0L, but we want 1 and 0.
*/ */

View File

@@ -777,6 +777,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1618,
/**/ /**/
1617, 1617,
/**/ /**/