From 12866b0d31755dc045d7c5fce0a61572a41891c7 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Fri, 27 Nov 2020 21:52:22 -0800 Subject: [PATCH] Log when JIT compaction is skipped due to ISeq GC --- mjit_worker.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mjit_worker.c b/mjit_worker.c index ff03a1a0fe..c708f01b63 100644 --- a/mjit_worker.c +++ b/mjit_worker.c @@ -910,7 +910,10 @@ compile_compact_jit_code(char* c_file) 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");