16de693774 (master): Remove wrapper field in iseq

0 views
Skip to first unread message

Peter Zhu

unread,
Aug 28, 2026, 9:23:48 AM (4 days ago) Aug 28
to ruby...@g.ruby-lang.org
Peter Zhu 2026-08-27 05:59:55 +0000 (Thu, 27 Aug 2026)

New Revision: 16de693774

https://github.com/ruby/ruby/commit/16de693774

Log:
Remove wrapper field in iseq

We keep a singleton of iseq wrappers (RubyVM::InstructionSequence). However,
this is rarely used and causes 8 bytes to be wasted on all iseq objects.
Since we now have the 32-byte slot size in the default GC, we can save that
memory.

Modified files:
iseq.c
test/ruby/test_iseq.rb
vm_core.h
zjit/src/cruby_bindings.inc.rs
zjit/src/hir/opt_tests.rs
zjit/src/hir/tests.rs
Reply all
Reply to author
Forward
0 new messages