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:
parent
8bba6d3d54
commit
6f7e02bf46
Notes:
git
2022-01-05 23:33:18 +09:00
1 changed files with 0 additions and 2 deletions
2
gc.c
2
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;
|
||||
|
|
Loading…
Add table
Reference in a new issue