[前][次][番号順一覧][スレッド一覧]

ruby-changes:72098

From: Peter <ko1@a...>
Date: Thu, 9 Jun 2022 00:26:17 +0900 (JST)
Subject: [ruby-changes:72098] d1b6c8a1cc (master): Fix compilation error when USE_RVARGC=0

https://git.ruby-lang.org/ruby.git/commit/?id=d1b6c8a1cc

From d1b6c8a1cc7b7c578ba2461a1cf279f87d76d302 Mon Sep 17 00:00:00 2001
From: Peter Zhu <peter@p...>
Date: Wed, 8 Jun 2022 11:25:31 -0400
Subject: 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 { https://github.com/ruby/ruby/blob/trunk/gc.c#L690
     /* 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;
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]