summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2019-05-23 07:53:41 -0700
committerTakashi Kokubun <takashikkbn@gmail.com>2019-05-23 07:53:42 -0700
commit4fe908c1643c3f355edd787bb651aefb53b996c0 (patch)
tree2de425e8a297885ae118683b0dc8bdf68d8aa907
parentc04ef141d2edd71f90f0707889b4adfd94e5be43 (diff)
gc.c: Try pausing MJIT worker during GC.verify_compaction_references
for debugging http://ci.rvm.jp/results/trunk-mjit-wait@silicon-docker/2048247
-rw-r--r--gc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gc.c b/gc.c
index 98fe9bd8d4..e164ed6c1d 100644
--- a/gc.c
+++ b/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);
}