summaryrefslogtreecommitdiff
path: root/ruby_assert.h
diff options
context:
space:
mode:
authorJean Boussier <byroot@ruby-lang.org>2023-11-16 16:28:12 +0100
committerJean Boussier <jean.boussier@gmail.com>2023-11-16 17:49:59 +0100
commit81b35fe7297957d78715a812f6edecec23c6e3b2 (patch)
tree9946b12bb5d817ebf599b512ac89e1798b5aa489 /ruby_assert.h
parentb92a92a3fff88a3a39bec72bfc48b1b6e936137e (diff)
rb_evict_ivars_to_hash: get rid of the sahpe paramater
It's only used to allocate the table with the right size, but in some case we were passing `rb_shape_get_shape_by_id(SHAPE_OBJ_TOO_COMPLEX)` which `next_iv_index` is a bit undefined. So overall we're better to just allocate a table the size of the existing object, it should be close enough in the vast majority of cases, and that's already a de-optimizaton path anyway.
Diffstat (limited to 'ruby_assert.h')
0 files changed, 0 insertions, 0 deletions