diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2008-09-19 09:59:03 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2008-09-19 09:59:03 +0000 |
commit | 16dedfd3996a3077ce9ee93ab4dd7b9e47d05cfb (patch) | |
tree | a5ad50dd3d492d6479f1a39a4ebadc61059f927e /NEWS | |
parent | f7db7631f4df8c6dcca5c1fef060634e8c62a6eb (diff) | |
download | mailfromd-16dedfd3996a3077ce9ee93ab4dd7b9e47d05cfb.tar.gz mailfromd-16dedfd3996a3077ce9ee93ab4dd7b9e47d05cfb.tar.bz2 |
Implement two stack growth policies.
* mfd/gram.y (pragma_stacksize): Implement two stack growth
policies.
* mfd/mailfromd.h (enum stack_expand_policy): New enum.
(stack_expand_incr, stack_expand_policy): New global variables.
* mfd/prog.c (stack_expand_incr)
(stack_expand_policy): New global variables.
* NEWS: Update.
* doc/mailfromd.texi (stacksize): Document changes to pragma
stacksize.
* doc/values.texi (STACK-INCR): New value.
git-svn-id: file:///svnroot/mailfromd/trunk@1676 7a8a7f39-df28-0410-adc6-e0d955640f24
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 20 |
1 files changed, 18 insertions, 2 deletions
@@ -1,4 +1,4 @@ -Mailfromd NEWS -- history of user-visible changes. 2008-09-18 +Mailfromd NEWS -- history of user-visible changes. 2008-09-19 Copyright (C) 2005, 2006, 2007, 2008 Sergey Poznyakoff See the end of file for copying conditions. @@ -132,7 +132,23 @@ The return value from this function is used as the exit code. Command line arguments may be processed using `getopt' builtin function. FIXME: Document it. - + +* Two stack growth policies. + +The stack can be grown either by fixed size blocks, or exponentially. +In first case, the size of the block is divisible by expansion chunk, +which is 4096 words by default. The expansion chunk size can be +specified as a second argument to pragma stacksize, e.g.: + + #pragma stacksize 10240 8192 + +Exponential stack growth means that each time the evaluator needs to +have more stack space, it expands the stack to twice the size it had +before. This growth policy is selected if the word `twice' appears as +the second argument to pragma stacksize: + + #pragma stacksize 10240 twice + * New programs: ** smap. |