diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2020-03-15 00:24:15 -0700 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2020-03-15 00:24:18 -0700 |
commit | f6a54e6e461e3689d0d9068d33f986ce2d458bef (patch) | |
tree | 1fb95131be1dfebdf4cc0be89bd8ea5eef1be454 /mjit.c | |
parent | 67fbc122fb71fab9b148faedfb2159ad38d965ac (diff) | |
download | ruby-f6a54e6e461e3689d0d9068d33f986ce2d458bef.tar.gz |
Add debug counter for unload_units
changing add_iseq_to_process's debug counter name as well for comparison
Diffstat (limited to 'mjit.c')
-rw-r--r-- | mjit.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -377,6 +377,7 @@ mjit_add_iseq_to_process(const rb_iseq_t *iseq, const struct rb_mjit_compile_inf if (!mjit_enabled || pch_status == PCH_FAILED) return; + RB_DEBUG_COUNTER_INC(mjit_add_iseq_to_process); iseq->body->jit_func = (mjit_func_t)NOT_READY_JIT_ISEQ_FUNC; create_unit(iseq); if (iseq->body->jit_unit == NULL) @@ -388,6 +389,7 @@ mjit_add_iseq_to_process(const rb_iseq_t *iseq, const struct rb_mjit_compile_inf CRITICAL_SECTION_START(3, "in add_iseq_to_process"); add_to_list(iseq->body->jit_unit, &unit_queue); if (active_units.length >= mjit_opts.max_cache_size) { + RB_DEBUG_COUNTER_INC(mjit_unload_units); unload_units(); } verbose(3, "Sending wakeup signal to workers in mjit_add_iseq_to_process"); |