Update of /cvsroot/monetdb/pathfinder/runtime
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv26831

Modified Files:
      Tag: Feb2009
        pathfinder.mx 
Log Message:
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.450.2.9
retrieving revision 1.450.2.10
diff -u -d -r1.450.2.9 -r1.450.2.10
--- pathfinder.mx       8 Apr 2009 14:34:39 -0000       1.450.2.9
+++ pathfinder.mx       9 Apr 2009 09:26:19 -0000       1.450.2.10
@@ -4638,10 +4638,11 @@
         if (is_mil && query == NULL) {
             *prologue = xquery; *epilogue = NULL;
         } else {
-            /* determine how much stack space we have: add 8192 to
-               local var to conservatively estimate bottom of stack,
-               then subtract stack size to find top */
-            PFmaxstack = ((char*) &xquery) + 8192 - 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

Reply via email to