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:
@@ -60,6 +60,17 @@
|
||||
|
||||
#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.
|
||||
*/
|
||||
|
@@ -777,6 +777,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1618,
|
||||
/**/
|
||||
1617,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user