Skip to content

Commit 77cf232

Browse files
committed
Appease mmtk
1 parent 6338386 commit 77cf232

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

gc.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3087,7 +3087,10 @@ rb_gc_mark_children(void *objspace, VALUE obj)
30873087
struct gc_mark_classext_foreach_arg foreach_args;
30883088

30893089
if (rb_obj_exivar_p(obj)) {
3090-
gc_mark_internal(rb_obj_fields_no_ractor_check(obj));
3090+
VALUE fields_obj = rb_obj_fields_no_ractor_check(obj);
3091+
if (fields_obj) {
3092+
gc_mark_internal(fields_obj);
3093+
}
30913094
}
30923095

30933096
switch (BUILTIN_TYPE(obj)) {

0 commit comments

Comments
 (0)