Skip to content

Commit 3b19085

Browse files
committed
skip jit payload
They should be checked, but not sure JIT code...
1 parent a177799 commit 3b19085

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

iseq.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,12 +412,15 @@ rb_iseq_mark_and_move(rb_iseq_t *iseq, bool reference_updating)
412412
#endif
413413
}
414414
else {
415+
// TODO: check jit payload
416+
if (!rb_gc_checking_shareable()) {
415417
#if USE_YJIT
416-
rb_yjit_iseq_mark(body->yjit_payload);
418+
rb_yjit_iseq_mark(body->yjit_payload);
417419
#endif
418420
#if USE_ZJIT
419-
rb_zjit_iseq_mark(body->zjit_payload);
421+
rb_zjit_iseq_mark(body->zjit_payload);
420422
#endif
423+
}
421424
}
422425
}
423426

0 commit comments

Comments
 (0)