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

chromatic at svn.parrot.org chromatic at svn.parrot.org
Sat Aug 28 02:14:42 UTC 2010


Author: chromatic
Date: Sat Aug 28 02:14:42 2010
New Revision: 48701
URL: https://trac.parrot.org/parrot/changeset/48701

Log:
[PMC] Set destroy flag to plug Class memory leak.

Calling Class's destroy() destroys the isa_hash allocated for every class.

Modified:
   trunk/src/pmc/class.pmc

Modified: trunk/src/pmc/class.pmc
==============================================================================
--- trunk/src/pmc/class.pmc	Sat Aug 28 02:14:36 2010	(r48700)
+++ trunk/src/pmc/class.pmc	Sat Aug 28 02:14:42 2010	(r48701)
@@ -689,7 +689,7 @@
                 (Parrot_Class_attributes *) PMC_data(SELF);
 
         /* Set flag for custom GC mark. */
-        PObj_custom_mark_SET(SELF);
+        PObj_custom_mark_destroy_SETALL(SELF);
 
         /* Set up the object. */
         _class->name            = CONST_STRING(INTERP, "");


More information about the parrot-commits mailing list