[前][次][番号順一覧][スレッド一覧]

ruby-changes:55800

From: Takashi <ko1@a...>
Date: Thu, 23 May 2019 23:54:22 +0900 (JST)
Subject: [ruby-changes:55800] Takashi Kokubun: 4fe908c164 (trunk): gc.c: Try pausing MJIT worker during GC.verify_compaction_references

https://git.ruby-lang.org/ruby.git/commit/?id=4fe908c164

From 4fe908c1643c3f355edd787bb651aefb53b996c0 Mon Sep 17 00:00:00 2001
From: Takashi Kokubun <takashikkbn@g...>
Date: Thu, 23 May 2019 07:53:41 -0700
Subject: gc.c: Try pausing MJIT worker during GC.verify_compaction_references

for debugging
http://ci.rvm.jp/results/trunk-mjit-wait@silicon-docker/2048247

diff --git a/gc.c b/gc.c
index 98fe9bd..e164ed6 100644
--- a/gc.c
+++ b/gc.c
@@ -8285,7 +8285,9 @@ gc_verify_compaction_references(int argc, VALUE *argv, VALUE mod) https://github.com/ruby/ruby/blob/trunk/gc.c#L8285
 
     /* 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);
 }
 
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]