From 4fe3082b63a801abe15711ebb907bd66aa58bc35 Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Tue, 16 Jul 2024 09:55:48 -0400 Subject: [DOC] Fix typo in gc/default.c --- gc/default.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gc/default.c b/gc/default.c index 063ab7f572..e04840a73b 100644 --- a/gc/default.c +++ b/gc/default.c @@ -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)); -- cgit v1.2.3