Changeset: 7a8e477ca05c for MonetDB URL: https://dev.monetdb.org/hg/MonetDB/rev/7a8e477ca05c Modified Files: monetdb5/mal/mal_session.c Branch: default Log Message:
in case of constants also clean the value in the program variables diffs (21 lines): diff --git a/monetdb5/mal/mal_session.c b/monetdb5/mal/mal_session.c --- a/monetdb5/mal/mal_session.c +++ b/monetdb5/mal/mal_session.c @@ -449,6 +449,8 @@ MSresetStack(Client cntxt, MalBlkPtr mb, glb->stk[i].vtype = TYPE_int; glb->stk[i].len = 0; glb->stk[i].val.pval = 0; + if (isVarConstant(mb, i)) + garbageElement(cntxt, &mb->var[i].value); } else { /* compress the global variable list and stack */ mb->var[k] = mb->var[i]; @@ -469,7 +471,7 @@ MSresetStack(Client cntxt, MalBlkPtr mb, mb->vtop = k; } -/* The symbol table be become filled with constant values to be garbage collected +/* The symbol table be become filled with constant values to be garbage collected * The signature is always left behind. */ _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list