Update of /cvsroot/monetdb/pathfinder/runtime
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv18771/runtime
Modified Files:
pathfinder.mx
Log Message:
propagated changes of Wednesday Apr 08 2009 - Thursday Apr 09 2009
from the Feb2009 branch to the development trunk
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2009/04/08 - sjoerd: runtime/pathfinder.mx,1.450.2.9
Normalize thread stack space usage: THREAD_STACK_SIZE is the size allocated,
not 2*THREAD_STACK_SIZE or 4*THREAD_STACK_SIZE.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2009/04/09 - sjoerd: runtime/pathfinder.mx,1.450.2.10
We need more slack space on top of when the highwater mark is last
checked. I made the amount dependent on the architecture. We'll need
to see if that is ok.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
U pathfinder.mx
Index: pathfinder.mx
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/runtime/pathfinder.mx,v
retrieving revision 1.455
retrieving revision 1.456
diff -u -d -r1.455 -r1.456
--- pathfinder.mx 8 Apr 2009 09:30:06 -0000 1.455
+++ pathfinder.mx 9 Apr 2009 18:49:07 -0000 1.456
@@ -4644,7 +4644,11 @@
if (is_mil && query == NULL) {
*prologue = xquery; *epilogue = NULL;
} else {
- PFmaxstack = ((char*) &xquery) - 2*THREAD_STACK_SIZE;
+ /* determine how much stack space we have: add extra to
+ local var to conservatively estimate bottom of stack
+ and to have some slack after last test, then subtract
+ stack size to find top */
+ PFmaxstack = ((char*) &xquery) + sizeof(size_t)*2048 -
THREAD_STACK_SIZE;
PFerrbuf = ctx->errbuf;
PFerrbuf[0] = 0;
err = PFcompile_MonetDB(xquery, url, prologue, &del, epilogue,
options,
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins