Simplify is_live_object

This commit is contained in:
Peter Zhu 2024-02-26 15:33:50 -05:00
parent 5efe386c89
commit 9ba53cb688

7
gc.c
View file

@ -4406,12 +4406,7 @@ is_live_object(rb_objspace_t *objspace, VALUE ptr)
break; break;
} }
if (!is_garbage_object(objspace, ptr)) { return !is_garbage_object(objspace, ptr);
return TRUE;
}
else {
return FALSE;
}
} }
static inline int static inline int