diff options
author | Peter Zhu <peter@peterzhu.ca> | 2024-02-26 15:33:50 -0500 |
---|---|---|
committer | Peter Zhu <peter@peterzhu.ca> | 2024-02-27 10:03:42 -0500 |
commit | 9ba53cb6886fcecf288d9313720987df389aa46c (patch) | |
tree | 54074798d0e8a7f1fc37aefadcddafe04b48d726 /gc.c | |
parent | 5efe386c89537d86d5a267843ac5da83083baaf5 (diff) |
Simplify is_live_object
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -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 |