summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-04-17 18:57:26 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-04-17 18:57:26 +0900
commitbe52c728899b44e063e041e4042dc0ebce9d5d68 (patch)
treea82da6e437e672a3cd84f99968b630669c26d2c9
parent2c6876f811a3c08e69816861127458b967900bcd (diff)
Get rid of doubly caching
-rw-r--r--ext/objspace/objspace.c2
1 files changed, 1 insertions, 1 deletions
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)
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);