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

ruby-changes:66459

From: Takashi <ko1@a...>
Date: Thu, 10 Jun 2021 16:41:24 +0900 (JST)
Subject: [ruby-changes:66459] 474f79958b (master): Cast jit_func for Windows

https://git.ruby-lang.org/ruby.git/commit/?id=474f79958b

From 474f79958bd0dbb3ae9bf7fdaff6e229094dfe08 Mon Sep 17 00:00:00 2001
From: Takashi Kokubun <takashikkbn@g...>
Date: Thu, 10 Jun 2021 00:40:58 -0700
Subject: Cast jit_func for Windows

https://ci.appveyor.com/project/ruby/ruby/builds/39542385/job/8b7aq951f9t01x4x
---
 mjit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mjit.c b/mjit.c
index fb55cdc..5ca4d68 100644
--- a/mjit.c
+++ b/mjit.c
@@ -270,7 +270,7 @@ mjit_add_iseq_to_process(const rb_iseq_t *iseq, const struct rb_mjit_compile_inf https://github.com/ruby/ruby/blob/trunk/mjit.c#L270
         CRITICAL_SECTION_START(3, "in add_iseq_to_process");
 
         // This prevents multiple Ractors from enqueueing the same ISeq twice.
-        if (rb_multi_ractor_p() && iseq->body->jit_func != NOT_ADDED_JIT_ISEQ_FUNC) {
+        if (rb_multi_ractor_p() && (uintptr_t)iseq->body->jit_func != NOT_ADDED_JIT_ISEQ_FUNC) {
             CRITICAL_SECTION_FINISH(3, "in add_iseq_to_process");
             return;
         }
-- 
cgit v1.1


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

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