diff options
Diffstat (limited to 'mjit.c')
-rw-r--r-- | mjit.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -307,8 +307,12 @@ mjit_add_iseq_to_process(const rb_iseq_t *iseq, const struct rb_mjit_compile_inf iseq->body->jit_func = (mjit_func_t)NOT_READY_JIT_ISEQ_FUNC; create_unit(iseq); - if (compile_info != NULL) + if (compile_info != NULL) { iseq->body->jit_unit->compile_info = *compile_info; + } else { + iseq->body->jit_unit->compile_info.disable_ivar_cache = false; + iseq->body->jit_unit->compile_info.disable_send_cache = false; + } if (iseq->body->jit_unit == NULL) // Failure in creating the unit. return; |