Project

General

Profile

« Previous | Next » 

Revision bbd5a5a8

Added by byroot (Jean Boussier) about 2 months ago

vm_getivar: normalize shape_id to ignore frozen state

Freezing an object changes its shape_id This is necessary
so that setivar routines can use the shape_id as a cache key
and save on checking the frozen status every time.

However for getivar routines, this causes needless cache misses.
By clearing that bit we increase hit rate in codepaths that see
both frozen and mutable objects.