Skip to content

Instantly share code, notes, and snippets.

@jnthn
Created November 29, 2015 12:04
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/cb85357d35af59d1d004 to your computer and use it in GitHub Desktop.
Save jnthn/cb85357d35af59d1d004 to your computer and use it in GitHub Desktop.
diff --git a/src/6model/sc.c b/src/6model/sc.c
index c0617c4..8de27b0 100644
--- a/src/6model/sc.c
+++ b/src/6model/sc.c
@@ -40,7 +40,9 @@ MVMObject * MVM_sc_create(MVMThreadContext *tc, MVMString *handle) {
scb->sc = sc;
sc->body = scb;
MVM_ASSIGN_REF(tc, &(sc->common.header), scb->handle, handle);
+ MVM_gc_allocate_gen2_default_set(tc);
MVM_repr_init(tc, (MVMObject *)sc);
+ MVM_gc_allocate_gen2_default_clear(tc);
}
uv_mutex_unlock(&tc->instance->mutex_sc_weakhash);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment