summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2025-10-22 05:10:15 +0900
committerKoichi Sasada <ko1@atdot.net>2025-10-23 13:08:26 +0900
commit3b190855ba965c179693a5baf25f365d9d445c09 (patch)
treede7dd67c6eea5c56f6abca775ee05862c3fd8e62
parenta177799807006b15341aa87b4f0ad9bb26c6b89c (diff)
skip jit payload
They should be checked, but not sure JIT code...
-rw-r--r--iseq.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/iseq.c b/iseq.c
index daa684713f..aabeb83b3c 100644
--- a/iseq.c
+++ b/iseq.c
@@ -412,12 +412,15 @@ rb_iseq_mark_and_move(rb_iseq_t *iseq, bool reference_updating)
#endif
}
else {
+ // TODO: check jit payload
+ if (!rb_gc_checking_shareable()) {
#if USE_YJIT
- rb_yjit_iseq_mark(body->yjit_payload);
+ rb_yjit_iseq_mark(body->yjit_payload);
#endif
#if USE_ZJIT
- rb_zjit_iseq_mark(body->zjit_payload);
+ rb_zjit_iseq_mark(body->zjit_payload);
#endif
+ }
}
}