aboutsummaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2008-09-19 09:59:03 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2008-09-19 09:59:03 +0000
commit16dedfd3996a3077ce9ee93ab4dd7b9e47d05cfb (patch)
treea5ad50dd3d492d6479f1a39a4ebadc61059f927e /NEWS
parentf7db7631f4df8c6dcca5c1fef060634e8c62a6eb (diff)
downloadmailfromd-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--NEWS20
1 files changed, 18 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 222f7ae4..a23373a8 100644
--- a/NEWS
+++ b/NEWS
@@ -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.

Return to:

Send suggestions and report system problems to the System administrator.