From a4d389d8fe87b6af9e5fac0e430d56a4ee9b8470 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Thu, 22 Aug 2019 22:46:29 +0900 Subject: Improve the description of MJIT cancel-all [ci skip] --- mjit.c | 1 + 1 file changed, 1 insertion(+) (limited to 'mjit.c') diff --git a/mjit.c b/mjit.c index 2f5f233e5d..88c0d836f0 100644 --- a/mjit.c +++ b/mjit.c @@ -122,6 +122,7 @@ mjit_update_references(const rb_iseq_t *iseq) iseq->body->jit_unit->iseq = (rb_iseq_t *)rb_gc_location((VALUE)iseq->body->jit_unit->iseq); // We need to invalidate JIT-ed code for the ISeq because it embeds pointer addresses. // To efficiently do that, we use the same thing as TracePoint and thus everything is cancelled for now. + // See mjit.h and tool/ruby_vm/views/_mjit_compile_insn.erb for how `mjit_call_p` is used. mjit_call_p = false; // TODO: instead of cancelling all, invalidate only this one and recompile it with some threshold. } -- cgit v1.2.1