-
-
Save jnthn/cb85357d35af59d1d004 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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