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

Drop MJIT debug code from GC.compact

As ko1 added some improvements on GC.compact, I want to check if it
solved the problem too.
This commit is contained in:
Takashi Kokubun 2019-05-29 05:09:59 +09:00
parent abd556958d
commit 462a63c39e
No known key found for this signature in database
GPG key ID: 6FFC433B12EE23DD

2
gc.c
View file

@ -8369,9 +8369,7 @@ gc_verify_compaction_references(int argc, VALUE *argv, VALUE mod)
/* Ensure objects are pinned */
rb_gc();
if (mjit_enabled) mjit_pause(false); // debugging. suspecting that JIT is triggered for a broken ISeq during `gc_compact_after_gc`.
gc_compact_after_gc(objspace, use_toward_empty, use_double_pages, TRUE);
if (mjit_enabled) mjit_resume(); // debugging
return rb_gc_compact_stats(mod);
}