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

ruby-changes:66197

From: Koichi <ko1@a...>
Date: Thu, 13 May 2021 18:20:21 +0900 (JST)
Subject: [ruby-changes:66197] 2420119f47 (master): skip rb_bug for inconsistent zombies count

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

From 2420119f47a6c5d478c721b2f30565d5a074dd32 Mon Sep 17 00:00:00 2001
From: Koichi Sasada <ko1@a...>
Date: Thu, 13 May 2021 18:18:08 +0900
Subject: skip rb_bug for inconsistent zombies count

It seems a bug but it takes more time to debug.
To stop CI failures, skip this rb_bug on
`RGENGC_CHECK_MODE=2` temporarily.
---
 gc.c | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/gc.c b/gc.c
index 3adc526..c98aaee 100644
--- a/gc.c
+++ b/gc.c
@@ -7638,13 +7638,14 @@ gc_verify_internal_consistency_(rb_objspace_t *objspace) https://github.com/ruby/ruby/blob/trunk/gc.c#L7638
 	if (heap_pages_final_slots != data.zombie_object_count ||
 	    heap_pages_final_slots != list_count) {
 
-	    rb_bug("inconsistent finalizing object count:\n"
-		   "  expect %"PRIuSIZE"\n"
-		   "  but    %"PRIuSIZE" zombies\n"
-		   "  heap_pages_deferred_final list has %"PRIuSIZE" items.",
-		   heap_pages_final_slots,
-		   data.zombie_object_count,
-		   list_count);
+            // TODO: debug it
+            rb_warn("inconsistent finalizing object count:\n"
+                    "  expect %"PRIuSIZE"\n"
+                    "  but    %"PRIuSIZE" zombies\n"
+                    "  heap_pages_deferred_final list has %"PRIuSIZE" items.",
+                    heap_pages_final_slots,
+                    data.zombie_object_count,
+                    list_count);
 	}
     }
 
-- 
cgit v1.1


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

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