aboutsummaryrefslogtreecommitdiffstats
path: root/thread.c
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-08-22 11:09:47 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-08-22 11:09:47 +0000
commitd3140aca609457c32e57a9428770c9a2a80fb78e (patch)
tree6bb1c00b04458d141c87d15e68311ab502a18c28 /thread.c
parenta023c34441e57a8d8553f28790fc458ebf4f27be (diff)
downloadruby-d3140aca609457c32e57a9428770c9a2a80fb78e.tar.gz
compile.c: remove tracecoverage instruction for line coverage
Line coverage was based on special instruction "tracecoverage". Now, instead, it uses the mechanism of trace hook [Feature #14104]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread.c b/thread.c
index b093a9a2e4..9757f9c0e9 100644
--- a/thread.c
+++ b/thread.c
@@ -5256,7 +5256,7 @@ update_line_coverage(VALUE data, const rb_trace_arg_t *trace_arg)
if (RB_TYPE_P(coverage, T_ARRAY) && !RBASIC_CLASS(coverage)) {
VALUE lines = RARRAY_AREF(coverage, COVERAGE_INDEX_LINES);
if (lines) {
- long line = FIX2INT(trace_arg->data) - 1;
+ long line = rb_sourceline() - 1;
long count;
VALUE num;
if (line >= RARRAY_LEN(lines)) { /* no longer tracked */