ruby-changes:71761
From: Nobuyoshi <ko1@a...>
Date: Sun, 17 Apr 2022 19:03:01 +0900 (JST)
Subject: [ruby-changes:71761] be52c72889 (master): Get rid of doubly caching
https://git.ruby-lang.org/ruby.git/commit/?id=be52c72889 From be52c728899b44e063e041e4042dc0ebce9d5d68 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sun, 17 Apr 2022 18:57:26 +0900 Subject: Get rid of doubly caching --- ext/objspace/objspace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/objspace/objspace.c b/ext/objspace/objspace.c index 04d40627ac..9cc66bcfe8 100644 --- a/ext/objspace/objspace.c +++ b/ext/objspace/objspace.c @@ -629,7 +629,7 @@ count_imemo_objects(int argc, VALUE *argv, VALUE self) https://github.com/ruby/ruby/blob/trunk/ext/objspace/objspace.c#L629 VALUE hash = setup_hash(argc, argv); if (imemo_type_ids[0] == 0) { -#define INIT_IMEMO_TYPE_ID(n) (imemo_type_ids[n] = rb_intern(#n)) +#define INIT_IMEMO_TYPE_ID(n) (imemo_type_ids[n] = rb_intern_const(#n)) INIT_IMEMO_TYPE_ID(imemo_env); INIT_IMEMO_TYPE_ID(imemo_cref); INIT_IMEMO_TYPE_ID(imemo_svar); -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/