Skip to content
  • Aaron Patterson's avatar
    70173a72
    Ivar copy needs to happen _before_ setting the shape · 70173a72
    Aaron Patterson authored
    When we copy instance variables, it is possible for the GC to be kicked
    off.  The GC looks at the shape to determine what slots to mark inside
    the object.  If the shape is set too soon, the GC could think that there
    are more instance variables on the object than there actually are at
    that moment.
    70173a72
    Ivar copy needs to happen _before_ setting the shape
    Aaron Patterson authored
    When we copy instance variables, it is possible for the GC to be kicked
    off.  The GC looks at the shape to determine what slots to mark inside
    the object.  If the shape is set too soon, the GC could think that there
    are more instance variables on the object than there actually are at
    that moment.
Loading