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

ruby-changes:63857

From: Takashi <ko1@a...>
Date: Thu, 3 Dec 2020 17:03:13 +0900 (JST)
Subject: [ruby-changes:63857] 541e4340dd (master): Assert unit->iseq null out happens under the JIT/GC guard

https://git.ruby-lang.org/ruby.git/commit/?id=541e4340dd

From 541e4340dd70de75d44c8ac3b5a4a69943042737 Mon Sep 17 00:00:00 2001
From: Takashi Kokubun <takashikkbn@g...>
Date: Thu, 3 Dec 2020 00:01:10 -0800
Subject: Assert unit->iseq null out happens under the JIT/GC guard


diff --git a/mjit.c b/mjit.c
index c65355f..34f83a4 100644
--- a/mjit.c
+++ b/mjit.c
@@ -119,6 +119,8 @@ mjit_free_iseq(const rb_iseq_t *iseq) https://github.com/ruby/ruby/blob/trunk/mjit.c#L119
         return;
 
     CRITICAL_SECTION_START(4, "mjit_free_iseq");
+    RUBY_ASSERT_ALWAYS(in_gc);
+    RUBY_ASSERT_ALWAYS(!in_jit);
     if (iseq->body->jit_unit) {
         // jit_unit is not freed here because it may be referred by multiple
         // lists of units. `get_from_list` and `mjit_finish` do the job.
-- 
cgit v0.10.2


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

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