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