[DOC] Fix typo in gc/default.c

This commit is contained in:
Peter Zhu 2024-07-16 09:55:48 -04:00
Родитель 60d3ed5043
Коммит 4fe3082b63
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -3726,7 +3726,7 @@ gc_sweep_plane(rb_objspace_t *objspace, rb_heap_t *heap, uintptr_t p, bits_t bit
obj_free_object_id(objspace, vp);
}
// always add free slots back to the swept pages freelist,
// so that if we're comapacting, we can re-use the slots
// so that if we're compacting, we can re-use the slots
(void)VALGRIND_MAKE_MEM_UNDEFINED((void*)p, BASE_SLOT_SIZE);
heap_page_add_freeobj(objspace, sweep_page, vp);
gc_report(3, objspace, "page_sweep: %s is added to freelist\n", rb_obj_info(vp));