Fix compilation error when USE_RVARGC=0

force_major_gc_count was not defined when USE_RVARGC=0.
This commit is contained in:
Peter Zhu 2022-06-08 11:25:31 -04:00
Родитель fafe68185c
Коммит d1b6c8a1cc
1 изменённых файлов: 1 добавлений и 3 удалений

4
gc.c
Просмотреть файл

@ -690,14 +690,12 @@ typedef struct rb_size_pool_struct {
/* Basic statistics */ /* Basic statistics */
size_t total_allocated_pages; size_t total_allocated_pages;
size_t total_freed_pages; size_t total_freed_pages;
size_t force_major_gc_count;
#if USE_RVARGC #if USE_RVARGC
/* Sweeping statistics */ /* Sweeping statistics */
size_t freed_slots; size_t freed_slots;
size_t empty_slots; size_t empty_slots;
/* Global statistics */
size_t force_major_gc_count;
#endif #endif
rb_heap_t eden_heap; rb_heap_t eden_heap;