aboutsummaryrefslogtreecommitdiffstats
path: root/gc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gc.c b/gc.c
index 3432373dfd..ae0c68cc01 100644
--- a/gc.c
+++ b/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;
}