[前][次][番号順一覧][スレッド一覧]

ruby-changes:48704

From: ko1 <ko1@a...>
Date: Fri, 17 Nov 2017 16:29:12 +0900 (JST)
Subject: [ruby-changes:48704] ko1:r60820 (trunk): remove a wrong assertion.

ko1	2017-11-17 16:29:07 +0900 (Fri, 17 Nov 2017)

  New Revision: 60820

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60820

  Log:
    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.

  Modified files:
    trunk/iseq.c
Index: iseq.c
===================================================================
--- iseq.c	(revision 60819)
+++ iseq.c	(revision 60820)
@@ -2343,7 +2343,6 @@ rb_iseq_trace_set(const rb_iseq_t *iseq, https://github.com/ruby/ruby/blob/trunk/iseq.c#L2343
 	    }
 	}
 	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);

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]