summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2019-08-22 22:46:29 +0900
committerTakashi Kokubun <takashikkbn@gmail.com>2019-08-22 22:46:47 +0900
commita4d389d8fe87b6af9e5fac0e430d56a4ee9b8470 (patch)
treedc32131b05243f8192238ae2a12c6c08eb348247
parent15eaedf805fb2727c79a6c59af6d5f6c2a6d634b (diff)
Improve the description of MJIT cancel-all [ci skip]
-rw-r--r--mjit.c1
1 files changed, 1 insertions, 0 deletions
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.
}