1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Try to set false explicitly

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67537 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
k0kubun 2019-04-14 05:48:40 +00:00
parent 7b88a9207b
commit a1b5d20068

6
mjit.c
View file

@ -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;