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

ruby-changes:73467

From: Takashi <ko1@a...>
Date: Wed, 7 Sep 2022 14:27:36 +0900 (JST)
Subject: [ruby-changes:73467] cac0dcfbff (master): Fix typo

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

From cac0dcfbffe630a0c763392358ca745007ae854d Mon Sep 17 00:00:00 2001
From: Takashi Kokubun <takashikkbn@g...>
Date: Wed, 7 Sep 2022 14:26:29 +0900
Subject: Fix typo

I meant the other one. Otherwise this option doesn't make sense.
---
 mjit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mjit.c b/mjit.c
index 864e682c24..1997eaa939 100644
--- a/mjit.c
+++ b/mjit.c
@@ -1958,7 +1958,7 @@ mjit_resume(void) https://github.com/ruby/ruby/blob/trunk/mjit.c#L1958
 
     // Lazily prepare PCH when --mjit=pause is given
     if (pch_status == PCH_NOT_READY) {
-        if (rb_respond_to(rb_mMJITCompiler, rb_intern("compile"))) {
+        if (rb_respond_to(rb_mMJIT, rb_intern("compile"))) {
             // [experimental] defining RubyVM::MJIT.compile allows you to replace JIT
             mjit_opts.custom = true;
             pch_status = PCH_SUCCESS;
-- 
cgit v1.2.1


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

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