Remove pointer check in moved_or_living_object_strictly_p
We don't need to check that the object is pointer to the GC heap in moved_or_living_object_strictly_p because it is called during reference updating, which does not free pages so it can never point to an object that is not on the GC heap.
This commit is contained in:
parent
7c4bf61a35
commit
edc7b73fc4
4
imemo.c
4
imemo.c
@ -215,9 +215,7 @@ rb_cc_table_mark(VALUE klass)
|
||||
static bool
|
||||
moved_or_living_object_strictly_p(VALUE obj)
|
||||
{
|
||||
return obj &&
|
||||
rb_gc_is_ptr_to_obj((void *)obj) &&
|
||||
(rb_objspace_markable_object_p(obj) || BUILTIN_TYPE(obj) == T_MOVED);
|
||||
return obj && (rb_objspace_markable_object_p(obj) || BUILTIN_TYPE(obj) == T_MOVED);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
x
Reference in New Issue
Block a user