Project

General

Profile

« Previous | Next » 

Revision cc7bd8e5

Added by tenderlovemaking (Aaron Patterson) over 7 years ago

Unconditionally define TRACE_INSN_P

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

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e