Skip to content

Commit

Permalink
[Bug #18257] Register the class path of FrozenCore to mark
Browse files Browse the repository at this point in the history
ICLASS does not have the path usually, so it needs to be registered
separately.
  • Loading branch information
nobu committed Sep 19, 2023
1 parent 4634405 commit 6473903
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/*
Expand Down

0 comments on commit 6473903

Please sign in to comment.