Change is_garbage_object to return a bool

This commit is contained in:
Peter Zhu 2024-02-27 12:28:26 -05:00
parent 3c44f6da6c
commit 08731182b8

2
gc.c
View File

@ -4373,7 +4373,7 @@ rb_objspace_call_finalizer(rb_objspace_t *objspace)
}
/* garbage objects will be collected soon. */
static inline int
static inline bool
is_garbage_object(rb_objspace_t *objspace, VALUE ptr)
{
return is_lazy_sweeping(objspace) && GET_HEAP_PAGE(ptr)->flags.before_sweep &&