Change is_garbage_object to return a bool
This commit is contained in:
parent
3c44f6da6c
commit
08731182b8
2
gc.c
2
gc.c
@ -4373,7 +4373,7 @@ rb_objspace_call_finalizer(rb_objspace_t *objspace)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* garbage objects will be collected soon. */
|
/* garbage objects will be collected soon. */
|
||||||
static inline int
|
static inline bool
|
||||||
is_garbage_object(rb_objspace_t *objspace, VALUE ptr)
|
is_garbage_object(rb_objspace_t *objspace, VALUE ptr)
|
||||||
{
|
{
|
||||||
return is_lazy_sweeping(objspace) && GET_HEAP_PAGE(ptr)->flags.before_sweep &&
|
return is_lazy_sweeping(objspace) && GET_HEAP_PAGE(ptr)->flags.before_sweep &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user