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;
}
if (!is_garbage_object(objspace, ptr)) {
return TRUE;
}
else {
return FALSE;
}
return !is_garbage_object(objspace, ptr);
}
static inline int