summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2020-11-27 21:52:22 -0800
committerTakashi Kokubun <takashikkbn@gmail.com>2020-11-27 21:52:47 -0800
commit12866b0d31755dc045d7c5fce0a61572a41891c7 (patch)
treead3dd8fc168d48c144204b7de4d16fd6aaf8bd11
parent46a49536e397832b96f9b78df547cbe886d0c9f5 (diff)
Log when JIT compaction is skipped due to ISeq GC
-rw-r--r--mjit_worker.c5
1 files changed, 4 insertions, 1 deletions
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");