From d1b6c8a1cc7b7c578ba2461a1cf279f87d76d302 Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Wed, 8 Jun 2022 11:25:31 -0400 Subject: [PATCH] Fix compilation error when USE_RVARGC=0 force_major_gc_count was not defined when USE_RVARGC=0. --- gc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gc.c b/gc.c index 4f5d50d67a..42e0da8d09 100644 --- a/gc.c +++ b/gc.c @@ -690,14 +690,12 @@ typedef struct rb_size_pool_struct { /* Basic statistics */ size_t total_allocated_pages; size_t total_freed_pages; + size_t force_major_gc_count; #if USE_RVARGC /* Sweeping statistics */ size_t freed_slots; size_t empty_slots; - - /* Global statistics */ - size_t force_major_gc_count; #endif rb_heap_t eden_heap;