Created
August 1, 2019 20:08
-
-
Save niner/ef6dd2466fcf11bc749b5582a0fde041 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/spesh/facts.c b/src/spesh/facts.c | |
index a3233f230..410293713 100644 | |
--- a/src/spesh/facts.c | |
+++ b/src/spesh/facts.c | |
@@ -127,7 +127,10 @@ static void wval_facts(MVMThreadContext *tc, MVMSpeshGraph *g, MVMuint16 tgt_ori | |
static void wvalfrom_facts(MVMThreadContext *tc, MVMSpeshGraph *g, MVMuint16 tgt_orig, | |
MVMuint16 tgt_i, MVMuint16 sslot, MVMint64 idx) { | |
MVMSerializationContext *sc = (MVMSerializationContext *)g->spesh_slots[sslot]; | |
- MVMObject *target = MVM_sc_get_object(tc, sc, idx); | |
+ MVMObject *target; | |
+ MVM_gc_allocate_gen2_default_set(tc); | |
+ target = MVM_sc_get_object(tc, sc, idx); | |
+ MVM_gc_allocate_gen2_default_clear(tc); | |
object_facts(tc, g, tgt_orig, tgt_i, MVM_sc_try_get_object(tc, sc, idx)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment