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

chromatic at svn.parrot.org chromatic at svn.parrot.org
Wed Mar 24 22:57:05 UTC 2010


Author: chromatic
Date: Wed Mar 24 22:57:04 2010
New Revision: 45163
URL: https://trac.parrot.org/parrot/changeset/45163

Log:
[PMC] Enabled the custom mark/destroy flag on all created LexInfo PMCs, which
plugs a huge memory leak in Rakudo.

Modified:
   trunk/src/pmc/lexinfo.pmc

Modified: trunk/src/pmc/lexinfo.pmc
==============================================================================
--- trunk/src/pmc/lexinfo.pmc	Wed Mar 24 22:45:57 2010	(r45162)
+++ trunk/src/pmc/lexinfo.pmc	Wed Mar 24 22:57:04 2010	(r45163)
@@ -1,5 +1,5 @@
 /*
-Copyright (C) 2008-2009, Parrot Foundation.
+Copyright (C) 2008-2010, Parrot Foundation.
 $Id$
 
 =head1 NAME
@@ -64,6 +64,7 @@
 
         /* Set value type to INTVAL */
         Parrot_pcc_invoke_method_from_c_args(interp, SELF, CONST_STRING(INTERP, "set_value_type"), "I->", (INTVAL)enum_type_INTVAL);
+        PObj_custom_mark_destroy_SETALL(SELF);
     }
 
 /*


More information about the parrot-commits mailing list