ruby-changes:48755
From: ko1 <ko1@a...>
Date: Tue, 21 Nov 2017 11:57:07 +0900 (JST)
Subject: [ruby-changes:48755] ko1:r60871 (trunk): check invariant.
ko1 2017-11-21 11:57:01 +0900 (Tue, 21 Nov 2017) New Revision: 60871 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60871 Log: check invariant. * iseq.c (rb_iseq_trace_set): at this point ISEQ_USE_COMPILE_DATA should not be set. Modified files: trunk/iseq.c Index: iseq.c =================================================================== --- iseq.c (revision 60870) +++ iseq.c (revision 60871) @@ -2336,6 +2336,9 @@ rb_iseq_trace_set(const rb_iseq_t *iseq, https://github.com/ruby/ruby/blob/trunk/iseq.c#L2336 #else const VALUE *code = iseq->body->iseq_encoded; #endif + if (iseq->flags & ISEQ_USE_COMPILE_DATA) { + rb_bug("ISEQ_USE_COMPILE_DATA should not be enabled: %s:%d\n", RSTRING_PTR(rb_iseq_path(iseq)), FIX2INT(rb_iseq_first_lineno(iseq))); + } ((rb_iseq_t *)iseq)->aux.trace_events = turnon_events; for (i=0; i<iseq->body->iseq_size;) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/