TRACE_INSN_P doesn't need to know about encoded iseqs, it just needs to look at decoded iseqs. We have the decoded iseqs available, so no reason to look at encoded ones. This change allows us to clear original_iseq from the iseq struct without any segvs (previously, clearing original_iseq would cause the tests to crash).
iseq.c (rb_iseq_trace_set): Only use decoded iseq with TRACE_INSN_P
Unconditionally define
TRACE_INSN_PTRACE_INSN_Pdoesn't need to know about encoded iseqs, it just needsto look at decoded iseqs. We have the decoded iseqs available, so no
reason to look at encoded ones. This change allows us to clear
original_iseqfrom the iseq struct without any segvs (previously,clearing
original_iseqwould cause the tests to crash).TRACE_INSN_Pgit-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e