diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2022-06-16 00:47:16 -0700 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2022-06-16 00:47:16 -0700 |
commit | 8ef312fc5bfa9c585a917dc006eeb7f2cad1b73f (patch) | |
tree | 3660ba0892b98434640f4e505180b7d4e0e04763 /mjit.c | |
parent | 30ca4a826350e169353bd01f1d67bc0fe87247b5 (diff) |
MJIT: Consider compaction on CC failure
Diffstat (limited to 'mjit.c')
-rw-r--r-- | mjit.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; |