why do I need PUSHMARK(SP)You don't need PUSHMARK, and in fact using it there is wrong. You only need it when the the thing you're calling expects a list of args on the stack (eg when calling call_pv()). Here, you're using eval_pv(), which doesn't expect a list of args, so using it is wrong.
VmSize of around 4 kB every million iterationIIRC, there was a bug that caused every 65536th allocated op not to be freed; this is fixed in recent Perls. You don't say which version you're using, but try it with something like 5.8.6 and see if the residual leak goes away.
Dave.
In reply to Re^3: Bare-bones embedding and memory leakage
by dave_the_m
in thread Bare-bones embedding and memory leakage
by polettix
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |