mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
494d55c9f7
Previously, removing a ROM method required flattening all chain layers into a single mutable table. This was O(n) and allocated RAM for all previously-ROM methods. Use a tombstone marker (MT_FUNC flag with func=NULL) instead. The mt_get() lookup treats this as "not found" and stops the chain walk, hiding the ROM entry while allowing superclass lookup. Co-authored-by: Claude <noreply@anthropic.com>