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

ruby-changes:70642

From: John <ko1@a...>
Date: Wed, 29 Dec 2021 08:57:51 +0900 (JST)
Subject: [ruby-changes:70642] 38a3965dea (master): YJIT: Fix warning in iface.c

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

From 38a3965dea1e811c7c1eebbc27b721e668b4d392 Mon Sep 17 00:00:00 2001
From: John Hawthorn <john@h...>
Date: Sun, 26 Dec 2021 19:50:46 -0800
Subject: YJIT: Fix warning in iface.c

Fixes warning:

    <internal:yjit>:16: warning: undefining the allocator of T_DATA
    class RubyVM::YJIT::Block
---
 yjit_iface.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/yjit_iface.c b/yjit_iface.c
index 6e72a2cc914..9240e3f1c93 100644
--- a/yjit_iface.c
+++ b/yjit_iface.c
@@ -1277,6 +1277,7 @@ rb_yjit_init(struct rb_yjit_options *options) https://github.com/ruby/ruby/blob/trunk/yjit_iface.c#L1277
 
     // YJIT::Block (block version, code block)
     cYjitBlock = rb_define_class_under(mYjit, "Block", rb_cObject);
+    rb_undef_alloc_func(cYjitBlock);
     rb_define_method(cYjitBlock, "address", block_address, 0);
     rb_define_method(cYjitBlock, "id", block_id, 0);
     rb_define_method(cYjitBlock, "code", block_code, 0);
-- 
cgit v1.2.1


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

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