Skip to content

Commit

Permalink
[pmc] Change WBs for Class.instantiate, Object.morph
Browse files Browse the repository at this point in the history
  • Loading branch information
Reini Urban committed Jun 5, 2014
1 parent a0c3ef7 commit bcceaa9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/pmc/class.pmc
Expand Up @@ -1304,7 +1304,7 @@ Creates a new PMC object of the type of the class and calls init().

*/

VTABLE PMC *instantiate(PMC *init) :no_wb {
VTABLE PMC *instantiate(PMC *init) :manual_wb {
Parrot_Class_attributes * const _class = PARROT_CLASS(SELF);
PMC *object;

Expand Down Expand Up @@ -1334,8 +1334,9 @@ Creates a new PMC object of the type of the class and calls init().
calculate_mro(INTERP, SELF, num_parents);
build_attrib_index(INTERP, SELF);

if (PMC_IS_NULL(_class->attrib_index))
if (PMC_IS_NULL(_class->attrib_index)) {
return PMCNULL;
}

/* See if we have any parents from other universes and if so set a
* flag stating so. */
Expand Down
3 changes: 2 additions & 1 deletion src/pmc/object.pmc
Expand Up @@ -980,9 +980,10 @@ Changes the PMC to a PMC of a new type
PMC * const method =
Parrot_oo_find_vtable_override(INTERP, classobj, meth_name);

if (!PMC_IS_NULL(method))
if (!PMC_IS_NULL(method)) {
Parrot_ext_call(INTERP, method, "PiP->", SELF, type);
PARROT_GC_WRITE_BARRIER(INTERP, SELF);
}
else
SUPER(type);
}
Expand Down

0 comments on commit bcceaa9

Please sign in to comment.