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

Modified Files:
      Tag: Feb2009
        pathfinder.mx 
Log Message:
Normalize thread stack space usage: THREAD_STACK_SIZE is the size allocated, 
not 2*THREAD_STACK_SIZE or 4*THREAD_STACK_SIZE.

U pathfinder.mx
Index: pathfinder.mx
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/runtime/pathfinder.mx,v
retrieving revision 1.450.2.8
retrieving revision 1.450.2.9
diff -u -d -r1.450.2.8 -r1.450.2.9
--- pathfinder.mx       8 Apr 2009 09:17:22 -0000       1.450.2.8
+++ pathfinder.mx       8 Apr 2009 14:34:39 -0000       1.450.2.9
@@ -4638,7 +4638,10 @@
         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 8192 to
+               local var to conservatively estimate bottom of stack,
+               then subtract stack size to find top */
+            PFmaxstack = ((char*) &xquery) + 8192 - 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