Permalink
Browse files

Don't eval recognize_optimized use __FILE__ and __LINE__ in the optim…

…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...
1 parent af5b304 commit 099f10679ec6d9ead9606cac2f843e854787db0c Aliaksey Kandratsenka committed with NZKoz Nov 1, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_controller/routing/recognition_optimisation.rb
@@ -148,7 +148,7 @@ def recognize_optimized(path, env)
end
nil
end
- }, __FILE__, __LINE__
+ }, '(recognize_optimized)', 1
end
def clear_recognize_optimized!

0 comments on commit 099f106

Please sign in to comment.