ruby-changes:62803
From: Peter <ko1@a...>
Date: Wed, 2 Sep 2020 11:03:26 +0900 (JST)
Subject: [ruby-changes:62803] 11922b5e03 (master): Fix error message for wb unprotected objects count
https://git.ruby-lang.org/ruby.git/commit/?id=11922b5e03 From 11922b5e030808b16fd2c604637e046b2d01b0f0 Mon Sep 17 00:00:00 2001 From: Peter Zhu <peter@p...> Date: Thu, 27 Aug 2020 09:24:21 -0400 Subject: Fix error message for wb unprotected objects count This error is about wb unprotected objects, not old objects. diff --git a/gc.c b/gc.c index 5240852..05d75e1 100644 --- a/gc.c +++ b/gc.c @@ -6328,7 +6328,7 @@ gc_verify_internal_consistency(rb_objspace_t *objspace) https://github.com/ruby/ruby/blob/trunk/gc.c#L6328 objspace->rgengc.old_objects, data.old_object_count); } if (objspace->rgengc.uncollectible_wb_unprotected_objects != data.remembered_shady_count) { - rb_bug("inconsistent old slot number: expect %"PRIuSIZE", but %"PRIuSIZE".", + rb_bug("inconsistent number of wb unprotected objects: expect %"PRIuSIZE", but %"PRIuSIZE".", objspace->rgengc.uncollectible_wb_unprotected_objects, data.remembered_shady_count); } } -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/