diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2022-07-11 23:49:11 -0700 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2022-07-11 23:49:13 -0700 |
commit | cbcc92f7888a7e2425edf57ee82d992c6cbb4f78 (patch) | |
tree | 6da453d037870872d5d6ffaf911cd805a1062c29 /mjit.c | |
parent | 6e74c5c268c251c5fc772a842c6507f1f621b5e1 (diff) |
MJIT: s/assert/VM_ASSERT/
include/ruby/assert.h sets NDEBUG by default.
As MJIT CI uses -DVM_CHECK_MODE, using only VM_ASSERT might be more
helpful.
Diffstat (limited to 'mjit.c')
-rw-r--r-- | mjit.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -484,7 +484,7 @@ rb_mjit_wait_call(rb_execution_context_t *ec, struct rb_iseq_constant_body *body struct rb_mjit_compile_info* rb_mjit_iseq_compile_info(const struct rb_iseq_constant_body *body) { - assert(body->jit_unit != NULL); + VM_ASSERT(body->jit_unit != NULL); return &body->jit_unit->compile_info; } @@ -496,7 +496,7 @@ mjit_recompile(const rb_iseq_t *iseq) verbose(1, "JIT recompile: %s@%s:%d", RSTRING_PTR(ISEQ_BODY(iseq)->location.label), RSTRING_PTR(rb_iseq_path(iseq)), FIX2INT(ISEQ_BODY(iseq)->location.first_lineno)); - assert(ISEQ_BODY(iseq)->jit_unit != NULL); + VM_ASSERT(ISEQ_BODY(iseq)->jit_unit != NULL); mjit_add_iseq_to_process(iseq, &ISEQ_BODY(iseq)->jit_unit->compile_info, true); check_unit_queue(); |