Skip to content

Instantly share code, notes, and snippets.

@jnthn
Created August 7, 2011 23:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jnthn/1130934 to your computer and use it in GitHub Desktop.
Save jnthn/1130934 to your computer and use it in GitHub Desktop.
diff --git a/src/6model/reprs/P6opaque.c b/src/6model/reprs/P6opaque.c
index b04bac1..c794499 100644
--- a/src/6model/reprs/P6opaque.c
+++ b/src/6model/reprs/P6opaque.c
@@ -873,11 +873,11 @@ static void change_type(PARROT_INTERP, PMC *obj, PMC *new_type) {
PMC_data(obj) = new_body;
Parrot_gc_free_fixed_size_storage(interp, cur_repr_data->allocation_size, instance);
instance = new_body;
- PARROT_GC_WRITE_BARRIER(interp, obj);
}
/* Finally, we're ready to switch the S-Table pointer. */
instance->common.stable = STABLE_PMC(new_type);
+ PARROT_GC_WRITE_BARRIER(interp, obj);
}
/* Initializes the P6opaque representation. */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment