Unpoision the object in rb_gc_impl_garbage_object_p
This commit is contained in:
parent
675529b9c6
commit
53eaa67305
@ -1653,6 +1653,7 @@ rb_gc_impl_garbage_object_p(void *objspace_ptr, VALUE ptr)
|
|||||||
{
|
{
|
||||||
rb_objspace_t *objspace = objspace_ptr;
|
rb_objspace_t *objspace = objspace_ptr;
|
||||||
|
|
||||||
|
asan_unpoisoning_object(ptr) {
|
||||||
switch (BUILTIN_TYPE(ptr)) {
|
switch (BUILTIN_TYPE(ptr)) {
|
||||||
case T_NONE:
|
case T_NONE:
|
||||||
case T_MOVED:
|
case T_MOVED:
|
||||||
@ -1661,6 +1662,7 @@ rb_gc_impl_garbage_object_p(void *objspace_ptr, VALUE ptr)
|
|||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return is_lazy_sweeping(objspace) && GET_HEAP_PAGE(ptr)->flags.before_sweep &&
|
return is_lazy_sweeping(objspace) && GET_HEAP_PAGE(ptr)->flags.before_sweep &&
|
||||||
!RVALUE_MARKED(objspace, ptr);
|
!RVALUE_MARKED(objspace, ptr);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user