diff options
author | Peter Zhu <[email protected]> | 2023-04-11 10:14:45 -0400 |
---|---|---|
committer | Peter Zhu <[email protected]> | 2023-04-11 15:02:44 -0400 |
commit | 91dcce5ed1e44ca2e64936b66699fc8c1c092f5c (patch) | |
tree | 814dcd8ad03e890a1535e2a820a0f44664983516 /gc.c | |
parent | ce99e50ede4e4981d7b008bbe17f72fa351a5978 (diff) |
Change max_iv_count to type attr_index_t
max_iv_count is calculated from next_iv_index of the shape, which is of
type attr_index_t, so we can also make max_iv_count of type
attr_index_t.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/7689
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -7349,7 +7349,7 @@ gc_mark_children(rb_objspace_t *objspace, VALUE obj) VALUE klass = RBASIC_CLASS(obj); // Increment max_iv_count if applicable, used to determine size pool allocation - uint32_t num_of_ivs = shape->next_iv_index; + attr_index_t num_of_ivs = shape->next_iv_index; if (RCLASS_EXT(klass)->max_iv_count < num_of_ivs) { RCLASS_EXT(klass)->max_iv_count = num_of_ivs; } |