diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2022-10-18 09:07:11 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-18 09:07:11 -0700 |
commit | e7166c9bb78e20531a9cbb372e460ecd12603b5e (patch) | |
tree | d22156bfa6623b1a4d74d57efcf2ff6f1cc4799a /mjit.c | |
parent | d67b6310d3e529b4d4a56ba8d850aa5bccfb83b5 (diff) |
Allow passing a Rust closure to rb_iseq_callback (#6575)
Notes
Notes:
Merged-By: k0kubun <takashikkbn@gmail.com>
Diffstat (limited to 'mjit.c')
-rw-r--r-- | mjit.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -951,7 +951,7 @@ mjit_capture_cc_entries(const struct rb_iseq_constant_body *compiled_iseq, const // Set up field `used_code_p` for unit iseqs whose iseq on the stack of ec. static void -mark_iseq_units(const rb_iseq_t *iseq) +mark_iseq_units(const rb_iseq_t *iseq, void *data) { if (ISEQ_BODY(iseq)->jit_unit != NULL) { ISEQ_BODY(iseq)->jit_unit->used_code_p = true; @@ -982,7 +982,7 @@ unload_units(void) } // All threads have a root_fiber which has a mjit_cont. Other normal fibers also // have a mjit_cont. Thus we can check ISeqs in use by scanning ec of mjit_conts. - rb_jit_cont_each_iseq(mark_iseq_units); + rb_jit_cont_each_iseq(mark_iseq_units, NULL); // TODO: check stale_units and unload unused ones! (note that the unit is not associated to ISeq anymore) // Unload units whose total_calls is smaller than any total_calls in unit_queue. |