From b90272b3b661bd2fd557332028b8feb568b6b9df Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Tue, 12 Sep 2023 11:20:22 -0400 Subject: [PATCH] Fix typo in gc.c --- gc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gc.c b/gc.c index d2cce59aac..3fd2a3b33f 100644 --- a/gc.c +++ b/gc.c @@ -1233,7 +1233,7 @@ total_freed_objects(rb_objspace_t *objspace) #define is_incremental_marking(objspace) ((objspace)->flags.during_incremental_marking != FALSE) #define will_be_incremental_marking(objspace) ((objspace)->rgengc.need_major_gc != GPR_FLAG_NONE) #define GC_INCREMENTAL_SWEEP_SLOT_COUNT 2048 -#define GC_INCREMENTAL_SWEEP_POOL_SLOT_COUT 1024 +#define GC_INCREMENTAL_SWEEP_POOL_SLOT_COUNT 1024 #define is_lazy_sweeping(objspace) (GC_ENABLE_LAZY_SWEEP && has_sweeping_pages(objspace)) #if SIZEOF_LONG == SIZEOF_VOIDP @@ -5822,7 +5822,7 @@ gc_sweep_step(rb_objspace_t *objspace, rb_size_pool_t *size_pool, rb_heap_t *hea size_pool->freed_slots += ctx.freed_slots; size_pool->empty_slots += ctx.empty_slots; - if (pooled_slots < GC_INCREMENTAL_SWEEP_POOL_SLOT_COUT) { + if (pooled_slots < GC_INCREMENTAL_SWEEP_POOL_SLOT_COUNT) { heap_add_poolpage(objspace, heap, sweep_page); pooled_slots += free_slots; }