summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-09-19 14:09:04 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-09-19 14:09:53 +0900
commit647390308239fbf82d159ecd83ed8df090af518d (patch)
treefdf45ee120b25aa8aa51bc8a3a20b544c0ea41c5
parent4634405f7c7a7e0b5490ed3de35c12aad9c91bf5 (diff)
[Bug #18257] Register the class path of FrozenCore to mark
ICLASS does not have the path usually, so it needs to be registered separately.
-rw-r--r--vm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vm.c b/vm.c
index 19eab3bcb7..792d1e5a5e 100644
--- a/vm.c
+++ b/vm.c
@@ -3711,6 +3711,7 @@ Init_VM(void)
RBASIC_CLEAR_CLASS(klass);
rb_obj_freeze(klass);
rb_gc_register_mark_object(fcore);
+ rb_gc_register_mark_object(rb_class_path_cached(fcore));
rb_mRubyVMFrozenCore = fcore;
/*