1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Revert "check it in eden or tomb."

This reverts commit 712c027524.
This commit is contained in:
Kazuhiro NISHIYAMA 2019-05-24 18:59:58 +09:00
parent c06f9e1d24
commit 6ae9d5c85f
No known key found for this signature in database
GPG key ID: 262ED8DBB4222F7A

6
gc.c
View file

@ -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;
}