From 0d775f2a3c402310b71a581e368f347c52af78e5 Mon Sep 17 00:00:00 2001 From: ko1 Date: Wed, 22 Jul 2015 10:55:02 +0000 Subject: * vm_core.h: separate rb_iseq_body into rb_iseq_constant_body and rb_iseq_variable_body (rb_iseq_t::variable_body). rb_iseq_variable_body can be modified after compilation. * compile.c: use rb_iseq_t::variable_body. * iseq.c: ditto. * thread.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'thread.c') diff --git a/thread.c b/thread.c index 48115d8ddc..8ca3f01908 100644 --- a/thread.c +++ b/thread.c @@ -5227,7 +5227,7 @@ rb_check_deadlock(rb_vm_t *vm) static void update_coverage(rb_event_flag_t event, VALUE proc, VALUE self, ID id, VALUE klass) { - VALUE coverage = GET_THREAD()->cfp->iseq->body->coverage; + VALUE coverage = GET_THREAD()->cfp->iseq->variable_body->coverage; if (coverage && RBASIC(coverage)->klass == 0) { long line = rb_sourceline() - 1; long count; -- cgit v1.2.3