[svn:parrot] r49582 - branches/generational_gc/src/pmc
bacek at svn.parrot.org
bacek at svn.parrot.org
Tue Oct 19 12:06:53 UTC 2010
Author: bacek
Date: Tue Oct 19 12:06:53 2010
New Revision: 49582
URL: https://trac.parrot.org/parrot/changeset/49582
Log:
Temporary workarond for mussing ro_variant_vtable
Modified:
branches/generational_gc/src/pmc/class.pmc
Modified: branches/generational_gc/src/pmc/class.pmc
==============================================================================
--- branches/generational_gc/src/pmc/class.pmc Tue Oct 19 09:24:53 2010 (r49581)
+++ branches/generational_gc/src/pmc/class.pmc Tue Oct 19 12:06:53 2010 (r49582)
@@ -344,10 +344,12 @@
new_vtable->pmc_class = self;
new_vtable->whoami = VTABLE_get_string(interp, self);
new_vtable->mro = _class->all_parents;
- new_vtable->ro_variant_vtable =
- Parrot_clone_vtable(interp, self->vtable->ro_variant_vtable);
- new_vtable->wb_variant_vtable =
- Parrot_clone_vtable(interp, self->vtable->wb_variant_vtable);
+ if (self->vtable->ro_variant_vtable)
+ new_vtable->ro_variant_vtable =
+ Parrot_clone_vtable(interp, self->vtable->ro_variant_vtable);
+ if (self->vtable->wb_variant_vtable)
+ new_vtable->wb_variant_vtable =
+ Parrot_clone_vtable(interp, self->vtable->wb_variant_vtable);
/* Store the class's vtable in the global table */
interp->vtables[type_num] = new_vtable;
More information about the parrot-commits
mailing list