[svn:parrot] r39679 - trunk/src
whiteknight at svn.parrot.org
whiteknight at svn.parrot.org
Sat Jun 20 20:58:26 UTC 2009
Author: whiteknight
Date: Sat Jun 20 20:58:25 2009
New Revision: 39679
URL: https://trac.parrot.org/parrot/changeset/39679
Log:
[pmc] more cleanups
Modified:
trunk/src/pmc.c
Modified: trunk/src/pmc.c
==============================================================================
--- trunk/src/pmc.c Sat Jun 20 20:54:07 2009 (r39678)
+++ trunk/src/pmc.c Sat Jun 20 20:58:25 2009 (r39679)
@@ -300,7 +300,6 @@
/* If we need an ext area, go allocate one */
Parrot_gc_add_pmc_ext(interp, pmc);
newflags |= PObj_is_PMC_EXT_FLAG;
- PARROT_ASSERT(pmc->pmc_ext != NULL);
PARROT_ASSERT((newflags & PObj_is_PMC_EXT_FLAG) != 0);
}
else {
@@ -749,13 +748,9 @@
interp->vtables[type]->pmc_class = _class;
}
else {
- if (PObj_is_PMC_EXT_TEST(_class))
- Parrot_gc_free_pmc_ext(interp, _class);
-
+ Parrot_gc_free_pmc_ext(interp, _class);
gc_flag_CLEAR(is_special_PMC, _class);
-
PObj_is_PMC_shared_CLEAR(_class);
-
interp->vtables[type]->pmc_class = _class;
}
More information about the parrot-commits
mailing list