ruby-changes:57221
From: Takashi <ko1@a...>
Date: Thu, 22 Aug 2019 22:47:15 +0900 (JST)
Subject: [ruby-changes:57221] Takashi Kokubun: a4d389d8fe (master): Improve the description of MJIT cancel-all [ci skip]
https://git.ruby-lang.org/ruby.git/commit/?id=a4d389d8fe From a4d389d8fe87b6af9e5fac0e430d56a4ee9b8470 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun <takashikkbn@g...> Date: Thu, 22 Aug 2019 22:46:29 +0900 Subject: Improve the description of MJIT cancel-all [ci skip] diff --git a/mjit.c b/mjit.c index 2f5f233..88c0d83 100644 --- a/mjit.c +++ b/mjit.c @@ -122,6 +122,7 @@ mjit_update_references(const rb_iseq_t *iseq) https://github.com/ruby/ruby/blob/trunk/mjit.c#L122 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 v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/