Skip to content

Commit

Permalink
Don't eval recognize_optimized use __FILE__ and __LINE__ in the optim…
Browse files Browse the repository at this point in the history
…ised recognition code.

It produces meaningless line numbers.  This also easily produces line numbers greater than recognition_optimization.rb have, which causes rcov to trash memory outside of it's coverage counting arrays.

[#1319 state:committed]
Signed-off-by: Michael Koziarski <michael@koziarski.com>
  • Loading branch information
Aliaksey Kandratsenka authored and NZKoz committed Nov 6, 2008
1 parent af5b304 commit 099f106
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -148,7 +148,7 @@ def recognize_optimized(path, env)
end
nil
end
}, __FILE__, __LINE__
}, '(recognize_optimized)', 1
end

def clear_recognize_optimized!
Expand Down

0 comments on commit 099f106

Please sign in to comment.