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

gc.c: Try pausing MJIT worker during GC.verify_compaction_references

for debugging
http://ci.rvm.jp/results/trunk-mjit-wait@silicon-docker/2048247
This commit is contained in:
Takashi Kokubun 2019-05-23 07:53:41 -07:00
parent c04ef141d2
commit 4fe908c164
No known key found for this signature in database
GPG key ID: 6FFC433B12EE23DD

2
gc.c
View file

@ -8285,7 +8285,9 @@ 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);
}