[svn:parrot] r42058 - trunk/src/pmc

chromatic at svn.parrot.org chromatic at svn.parrot.org
Sat Oct 24 00:45:51 UTC 2009


Author: chromatic
Date: Sat Oct 24 00:45:51 2009
New Revision: 42058
URL: https://trac.parrot.org/parrot/changeset/42058

Log:
[PMC] Enabled (experimental) recycling of RetContinuation PMC when it gets
invoked.  This gives a 4.98% performance improvement on fib.pir.  Hopefully the
RetCont PMC will merge with Context soon, but until then, this is a nice
improvement that's easy to revert if it causes problems.

Modified:
   trunk/src/pmc/retcontinuation.pmc

Modified: trunk/src/pmc/retcontinuation.pmc
==============================================================================
--- trunk/src/pmc/retcontinuation.pmc	Sat Oct 24 00:16:14 2009	(r42057)
+++ trunk/src/pmc/retcontinuation.pmc	Sat Oct 24 00:45:51 2009	(r42058)
@@ -82,11 +82,7 @@
         Parrot_continuation_check(interp, SELF);
         Parrot_continuation_rewind_environment(interp, SELF);
 
-        /* the continuation is dead - delete and destroy it */
-        /* This line causes a failure in t/pmc/packfiledirectory.t. No idea
-           what the relationship is between this line of code and that test
-           failure. */
-        /* Parrot_gc_free_pmc_header(interp, SELF); */
+        Parrot_gc_free_pmc_header(interp, SELF);
 
         if (INTERP->code != seg)
             Parrot_switch_to_cs(INTERP, seg, 1);


More information about the parrot-commits mailing list