From 84d1a99a3fc76b4bcd5fc382e5b30a466b124493 Mon Sep 17 00:00:00 2001 From: Koichi Sasada Date: Tue, 25 Feb 2020 13:37:52 +0900 Subject: should be initialize jit_unit->cc_entries. GC can invoke just after allocation of jit_unit->cc_entries so it should be zero-cleared. --- iseq.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'iseq.c') diff --git a/iseq.c b/iseq.c index 25f45a767f..40be6c76c4 100644 --- a/iseq.c +++ b/iseq.c @@ -363,7 +363,9 @@ rb_iseq_mark(const rb_iseq_t *iseq) // TODO: move to mjit.c? for (unsigned int i=0; ici_size; i++) { const struct rb_callcache *cc = body->jit_unit->cc_entries[i]; - rb_gc_mark((VALUE)cc); // pindown + if (cc != NULL) { + rb_gc_mark((VALUE)cc); // pindown + } } } #endif -- cgit v1.2.3