summaryrefslogtreecommitdiff
path: root/iseq.c
diff options
context:
space:
mode:
Diffstat (limited to 'iseq.c')
-rw-r--r--iseq.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/iseq.c b/iseq.c
index 0697fef53b..b6d463526d 100644
--- a/iseq.c
+++ b/iseq.c
@@ -364,7 +364,8 @@ rb_iseq_mark(const rb_iseq_t *iseq)
for (unsigned int i=0; i<body->ci_size; i++) {
const struct rb_callcache *cc = cc_entries[i];
if (cc != NULL) {
- rb_gc_mark((VALUE)cc); // pindown
+ // Pin cc against GC.compact as the the address may be written in JIT-ed code.
+ rb_gc_mark((VALUE)cc);
}
}
}