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:
parent
30ca4a8263
commit
8ef312fc5b
1 changed files with 3 additions and 1 deletions
4
mjit.c
4
mjit.c
|
@ -327,7 +327,9 @@ mjit_notify_waitpid(int status)
|
||||||
}
|
}
|
||||||
if (!success) {
|
if (!success) {
|
||||||
verbose(2, "Failed to generate so");
|
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);
|
free_unit(current_cc_unit);
|
||||||
current_cc_unit = NULL;
|
current_cc_unit = NULL;
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Reference in a new issue