ruby-changes:63778
From: Takashi <ko1@a...>
Date: Sat, 28 Nov 2020 14:53:18 +0900 (JST)
Subject: [ruby-changes:63778] 12866b0d31 (master): Log when JIT compaction is skipped due to ISeq GC
https://git.ruby-lang.org/ruby.git/commit/?id=12866b0d31 From 12866b0d31755dc045d7c5fce0a61572a41891c7 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun <takashikkbn@g...> Date: Fri, 27 Nov 2020 21:52:22 -0800 Subject: Log when JIT compaction is skipped due to ISeq GC diff --git a/mjit_worker.c b/mjit_worker.c index ff03a1a..c708f01 100644 --- a/mjit_worker.c +++ b/mjit_worker.c @@ -910,7 +910,10 @@ compile_compact_jit_code(char* c_file) https://github.com/ruby/ruby/blob/trunk/mjit_worker.c#L910 bool iseq_gced = false; struct rb_mjit_unit *child_unit = 0; list_for_each(&active_units.head, child_unit, unode) { - if (child_unit->iseq == NULL) iseq_gced = true; + if (child_unit->iseq == NULL) { + iseq_gced = true; + verbose(1, "JIT compaction: A method for JIT code u%d is obsoleted. Compaction will be skipped.", child_unit->id); + } } in_jit = !iseq_gced; CRITICAL_SECTION_FINISH(3, "before mjit_compile to wait GC finish"); -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/