objspace_dump.c: dump the capacity field for INITIAL_CAPACITY shapes

We forgot about that one, it's quite useful to see which capacity
we started from.
This commit is contained in:
Jean Boussier 2022-12-09 15:22:10 +01:00 committed by Jean Boussier
parent 12b5268679
commit d7812d1949
Notes: git 2022-12-09 16:06:48 +00:00

View File

@ -747,6 +747,8 @@ shape_i(rb_shape_t *shape, void *data)
break;
case SHAPE_INITIAL_CAPACITY:
dump_append(dc, "\"INITIAL_CAPACITY\"");
dump_append(dc, ", \"capacity\":");
dump_append_sizet(dc, shape->capacity);
break;
case SHAPE_T_OBJECT:
dump_append(dc, "\"T_OBJECT\"");