diff options
author | Jean Boussier <[email protected]> | 2025-05-11 10:42:42 +0200 |
---|---|---|
committer | Satoshi Tagomori <[email protected]> | 2025-05-11 23:32:50 +0900 |
commit | 574127b0db7ac757ea55cee4e3e61d5a7a5e06c6 (patch) | |
tree | ee91b3e09e21b68ec58f463b82a869058426fd00 /variable.c | |
parent | ae2d5378e8acc015e43f38188bd0b1412c6302b9 (diff) |
Add missing gc_mark in `autoload_const_mark`
If we're referencing the namespace object we have to mark it.
Diffstat (limited to 'variable.c')
-rw-r--r-- | variable.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/variable.c b/variable.c index c8be5a3b39..b6f1abdc93 100644 --- a/variable.c +++ b/variable.c @@ -2864,6 +2864,7 @@ autoload_const_compact(void *ptr) ac->autoload_data_value = rb_gc_location(ac->autoload_data_value); ac->value = rb_gc_location(ac->value); ac->file = rb_gc_location(ac->file); + ac->namespace = rb_gc_location(ac->namespace); } static void @@ -2875,6 +2876,7 @@ autoload_const_mark(void *ptr) rb_gc_mark_movable(ac->autoload_data_value); rb_gc_mark_movable(ac->value); rb_gc_mark_movable(ac->file); + rb_gc_mark_movable(ac->namespace); } static size_t |