Fix typo in assertion in gc.c

This commit is contained in:
Peter Zhu 2022-01-26 09:45:22 -05:00
parent bffd6cbd97
commit e714163011

2
gc.c
View File

@ -2380,7 +2380,7 @@ ractor_cached_free_region(rb_objspace_t *objspace, rb_ractor_t *cr, size_t size_
asan_unpoison_object(obj, true);
#endif
#if RGENGC_CHECK_MODE
GC_ASSERT(cache->using_page.slot_size == (short)stride);
GC_ASSERT(cache->using_page->slot_size == (short)stride);
// zero clear
MEMZERO((char *)obj, char, stride);
#endif