Stephen Howard
Sun, 29 Jan 2006 06:35:42 -0800
-Stephen Andy Wardley wrote:
Andy Wardley wrote:I think I've fixed the bug, so it looks like we now have full support for tied objects in the XS Stash.It turns out my "fixes" introduced a memory leak. How do I know? Because t/leak.t told me so. :-) In my defence, I was doing what perlguts told me to do (increment theref count before storing a hash/list item, and decrement it if the hv_store() / av_store() method returns NULL). But whatever perlguts said, the code was wrong.Removing the offending ref count updates made t/leak.t happy, therebydemonstrating that the XS Stash now does the same thing as the Perl version, but faster. Job done, I can now go out skateboarding. Needless to say, I can't stress enough how important it is to have a thorough test suite for your software. Spend all day debugging, or go out skating? Easy choice :-)All Hail the Test Suite! A _______________________________________________ templates mailing list templates@template-toolkit.org http://lists.template-toolkit.org/mailman/listinfo/templates
_______________________________________________ templates mailing list templates@template-toolkit.org http://lists.template-toolkit.org/mailman/listinfo/templates