Project

General

Profile

ยซ Previous | Next ยป 

Revision 81b35fe7

Added by byroot (Jean Boussier) almost 2 years ago

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.