From 11922b5e030808b16fd2c604637e046b2d01b0f0 Mon Sep 17 00:00:00 2001 From: Peter Zhu 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. --- gc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gc.c') diff --git a/gc.c b/gc.c index 5240852cc7..05d75e16e2 100644 --- a/gc.c +++ b/gc.c @@ -6328,7 +6328,7 @@ gc_verify_internal_consistency(rb_objspace_t *objspace) 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 v1.2.3