mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
parent
c06f9e1d24
commit
6ae9d5c85f
1 changed files with 2 additions and 4 deletions
6
gc.c
6
gc.c
|
@ -2212,10 +2212,8 @@ is_pointer_to_heap(rb_objspace_t *objspace, void *ptr)
|
|||
page = heap_pages_sorted[mid];
|
||||
if (page->start <= p) {
|
||||
if (p < page->start + page->total_slots) {
|
||||
if (!page->flags.in_tomb) {
|
||||
RB_DEBUG_COUNTER_INC(gc_isptr_maybe);
|
||||
return TRUE;
|
||||
}
|
||||
RB_DEBUG_COUNTER_INC(gc_isptr_maybe);
|
||||
return TRUE;
|
||||
}
|
||||
lo = mid + 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue