Changeset: 9b8e198f080f for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=9b8e198f080f
Modified Files:
monetdb5/mal/mal_function.c
Branch: Aug2011
Log Message:
Double check and adjust max argument count
The max argument count is used in the interpreter to allocate
space for backups.
diffs (14 lines):
diff --git a/monetdb5/mal/mal_function.c b/monetdb5/mal/mal_function.c
--- a/monetdb5/mal/mal_function.c
+++ b/monetdb5/mal/mal_function.c
@@ -165,6 +165,10 @@ void chkFlow(MalBlkPtr mb)
lastInstruction = mb->stop-1;
for(i= 0; i<mb->stop; i++){
p= getInstrPtr(mb,i);
+ /* we have to keep track on the maximal arguments/block
+ because it is needed by the interpreter */
+ if( mb->maxarg < p->maxarg)
+ mb->maxarg= p->maxarg;
switch( p->barrier){
case BARRIERsymbol:
case CATCHsymbol:
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list