1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Log when JIT compaction is skipped due to ISeq GC

This commit is contained in:
Takashi Kokubun 2020-11-27 21:52:22 -08:00
parent 46a49536e3
commit 12866b0d31
No known key found for this signature in database
GPG key ID: 6FFC433B12EE23DD

View file

@ -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");