Skip to content

Commit

Permalink
Change is_garbage_object to return a bool
Browse files Browse the repository at this point in the history
  • Loading branch information
peterzhu2118 committed Feb 27, 2024
1 parent 3c44f6d commit 0873118
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gc.c
Expand Up @@ -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 &&
Expand Down

0 comments on commit 0873118

Please sign in to comment.