1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix error message for wb unprotected objects count

This error is about wb unprotected objects, not old objects.
This commit is contained in:
Peter Zhu 2020-08-27 09:24:21 -04:00 committed by Alan Wu
parent 4c3f0597de
commit 11922b5e03
Notes: git 2020-09-02 11:03:35 +09:00

2
gc.c
View file

@ -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);
}
}