mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 05:25:34 +02:00
Simplify is_live_object
This commit is contained in:
parent
5efe386c89
commit
9ba53cb688
1 changed files with 1 additions and 6 deletions
7
gc.c
7
gc.c
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue