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:
parent
c04ef141d2
commit
4fe908c164
1 changed files with 2 additions and 0 deletions
2
gc.c
2
gc.c
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue