Project

General

Profile

« Previous | Next » 

Revision 130d6aae

Added by byroot (Jean Boussier) 6 months ago

Reclaim one VALUE from rb_classext_t by shrinking super_classdepth

By making super_classdepth uint16_t, classes and modules can
now fit in 160B slots again.

The downside of course is that before super_classdepth was large
enough we never had to care about overflow, as you couldn't
realistically create enough classes to ever go over it.

With this change, while it is stupid, you could realistically
create an ancestor chain containing 65k classes and modules.