Skip to content

Instantly share code, notes, and snippets.

@niner
Created August 1, 2019 20:08
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 niner/ef6dd2466fcf11bc749b5582a0fde041 to your computer and use it in GitHub Desktop.
Save niner/ef6dd2466fcf11bc749b5582a0fde041 to your computer and use it in GitHub Desktop.
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