diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-17 07:29:07 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-17 07:29:07 +0000 |
commit | d2bb08ecf02fccbe8e5d9723af21cfe454c3cf29 (patch) | |
tree | a24af28d9fc9c36d37aa71e064ce1d8785d958d6 | |
parent | c7ae8af92faf7c5566aaa2c0831a51e6b5f16e72 (diff) | |
download | ruby-d2bb08ecf02fccbe8e5d9723af21cfe454c3cf29.tar.gz |
remove a wrong assertion.
* iseq.c (rb_iseq_trace_set): remove a wrong assertion.
This assertion checked `insn` is `trace_` prefix instruction
but threaded code `insn` is original code.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | iseq.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -2343,7 +2343,6 @@ rb_iseq_trace_set(const rb_iseq_t *iseq, rb_event_flag_t turnon_events) } } else if (TRACE_INSN_P(insn, iseq_encoded[i])) { - VM_ASSERT(insn - VM_INSTRUCTION_SIZE/2 >= 0); iseq_encoded[i] = INSN_CODE(insn); } i += insn_len(insn); |