aboutsummaryrefslogtreecommitdiffstats
path: root/gc.c
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2022-01-05 08:51:59 -0500
committerPeter Zhu <peter@peterzhu.ca>2022-01-05 09:32:53 -0500
commit6f7e02bf46d9c7e778e710fb3761d2d9c44124f2 (patch)
treebda9c73166e6c76afbf59cf510537423d1b8a171 /gc.c
parent8bba6d3d54fb10aa0fe12c3001b520fffc695663 (diff)
downloadruby-6f7e02bf46d9c7e778e710fb3761d2d9c44124f2.tar.gz
Remove assertion causing read barrier to trigger
GET_HEAP_PAGE reads the page. If during compaction there is a read barrier on the page, it causes the read barrier to trigger.
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gc.c b/gc.c
index b00140bee6..2c917e4faa 100644
--- a/gc.c
+++ b/gc.c
@@ -2851,8 +2851,6 @@ is_pointer_to_heap(rb_objspace_t *objspace, void *ptr)
page = heap_page_for_ptr(objspace, (uintptr_t)ptr);
if (page) {
- GC_ASSERT(page == GET_HEAP_PAGE(ptr));
-
RB_DEBUG_COUNTER_INC(gc_isptr_maybe);
if (page->flags.in_tomb) {
return FALSE;