diff options
author | Peter Zhu <[email protected]> | 2022-01-05 08:51:59 -0500 |
---|---|---|
committer | Peter Zhu <[email protected]> | 2022-01-05 09:32:53 -0500 |
commit | 6f7e02bf46d9c7e778e710fb3761d2d9c44124f2 (patch) | |
tree | bda9c73166e6c76afbf59cf510537423d1b8a171 /gc.c | |
parent | 8bba6d3d54fb10aa0fe12c3001b520fffc695663 (diff) |
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.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/5394
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -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; |