86ebfbd581 (master): Decode trace instructions to bare ones without threaded code

0 views
Skip to first unread message

Hiroshi SHIBATA

unread,
Oct 5, 2026, 10:33:17 PM (19 hours ago) Oct 5
to ruby...@g.ruby-lang.org
Hiroshi SHIBATA 2026-09-29 03:49:44 +0000 (Tue, 29 Sep 2026)

New Revision: 86ebfbd581

https://github.com/ruby/ruby/commit/86ebfbd581

Log:
Decode trace instructions to bare ones without threaded code

rb_vm_insn_decode is documented to return bare instructions, and rb_iseq_original_iseq maps encoded instructions back to bare ones, but both did so only with threaded code. Without it, once any ISEQ TracePoint had been enabled in the process, disasm showed trace variants, to_binary dumped them into files loaded by other processes, and YJIT failed its opt_getconstant_path assertion.

Co-Authored-By: Claude Opus 5.5 <nor...@anthropic.com>

Modified files:
compile.c
iseq.c
test/ruby/test_iseq.rb
Reply all
Reply to author
Forward
0 new messages