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

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.
This commit is contained in:
Peter Zhu 2022-01-05 08:51:59 -05:00
parent 8bba6d3d54
commit 6f7e02bf46
Notes: git 2022-01-05 23:33:18 +09:00

2
gc.c
View file

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