ruby/ext/pty
Jemma Issroff 5246f4027e Transition shape when object's capacity changes
This commit adds a `capacity` field to shapes, and adds shape
transitions whenever an object's capacity changes. Objects which are
allocated out of a bigger size pool will also make a transition from the
root shape to the shape with the correct capacity for their size pool
when they are allocated.

This commit will allow us to remove numiv from objects completely, and
will also mean we can guarantee that if two objects share shapes, their
IVs are in the same positions (an embedded and extended object cannot
share shapes). This will enable us to implement ivar sets in YJIT using
object shapes.

Co-Authored-By: Aaron Patterson <tenderlove@ruby-lang.org>
2022-11-10 10:11:34 -05:00
..
lib [DOC] RDoc changes for IO (#6458) 2022-10-02 08:24:08 -05:00
depend Transition shape when object's capacity changes 2022-11-10 10:11:34 -05:00
extconf.rb ext/pty/extconf.rb: Try libutil only on OpenBSD 2022-08-18 12:46:24 +09:00
pty.c getenv: is in stdlib.h 2022-09-21 11:44:09 +09:00