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

MJIT: Consider compaction on CC failure

This commit is contained in:
Takashi Kokubun 2022-06-16 00:47:16 -07:00
parent 30ca4a8263
commit 8ef312fc5b
No known key found for this signature in database
GPG key ID: 6FFC433B12EE23DD

4
mjit.c
View file

@ -327,7 +327,9 @@ mjit_notify_waitpid(int status)
}
if (!success) {
verbose(2, "Failed to generate so");
current_cc_unit->iseq->body->jit_func = (mjit_func_t)NOT_COMPILED_JIT_ISEQ_FUNC; // TODO: consider unit->compact_p
if (!current_cc_unit->compact_p) {
current_cc_unit->iseq->body->jit_func = (mjit_func_t)NOT_COMPILED_JIT_ISEQ_FUNC;
}
free_unit(current_cc_unit);
current_cc_unit = NULL;
return;