mirror of
https://github.com/ruby/ruby.git
synced 2025-08-16 14:09:02 +02:00
Unpoision the object in rb_gc_impl_garbage_object_p
This commit is contained in:
parent
675529b9c6
commit
53eaa67305
1 changed files with 9 additions and 7 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue