Update of /cvsroot/monetdb/MonetDB5/src/optimizer
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv2050
Modified Files:
opt_recycler.mx
Log Message:
Inject a prelude and postlude to control the state of the recycling.
Index: opt_recycler.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB5/src/optimizer/opt_recycler.mx,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- opt_recycler.mx 16 Mar 2008 12:13:16 -0000 1.12
+++ opt_recycler.mx 18 Mar 2008 07:00:31 -0000 1.13
@@ -106,6 +106,8 @@
newMalBlkStmt(mb, mb->ssize);
pushInstruction(mb,old[0]);
+ /* create a handle for recycler */
+ q= newFcnCall(mb,"recycle","prelude");
for (i = 1; i<limit; i++) {
p = old[i];
if (hasSideEffects(p,TRUE) || isUnsafeFunction(p)){
@@ -157,6 +159,8 @@
p->argc=2;
p->recycle = 1;
}
+ if( p->token== ENDsymbol)
+ q= newFcnCall(mb,"recycle","epilogue");
pushInstruction(mb,p);
}
if (actions)
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins