[svn:parrot] r40982 - trunk/src

chromatic at svn.parrot.org chromatic at svn.parrot.org
Sat Sep 5 00:14:38 UTC 2009


Author: chromatic
Date: Sat Sep  5 00:14:38 2009
New Revision: 40982
URL: https://trac.parrot.org/parrot/changeset/40982

Log:
[PMC] Changed PMC destruction to free the PMC_sync structure only if it exists,
which it never does.  This improves the primes.pasm benchmark by 1.3%.

Modified:
   trunk/src/pmc.c

Modified: trunk/src/pmc.c
==============================================================================
--- trunk/src/pmc.c	Sat Sep  5 00:14:33 2009	(r40981)
+++ trunk/src/pmc.c	Sat Sep  5 00:14:38 2009	(r40982)
@@ -118,7 +118,8 @@
     PObj_custom_mark_CLEAR(pmc);
     PObj_live_CLEAR(pmc);
 
-    Parrot_gc_free_pmc_sync(interp, pmc);
+    if (PObj_is_PMC_shared_TEST(pmc) && PMC_sync(pmc))
+        Parrot_gc_free_pmc_sync(interp, pmc);
 
     if (pmc->vtable->attr_size) {
         if (PMC_data(pmc)) {


More information about the parrot-commits mailing list