diff options
author | Aliaksey Kandratsenka <alk@tut.by> | 2008-11-01 13:55:45 +0200 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2008-11-06 19:52:44 +0000 |
commit | 099f10679ec6d9ead9606cac2f843e854787db0c (patch) | |
tree | 4c94c2e2534909915bd05fb6ca1c91a81dd68195 /actionpack/lib/action_controller | |
parent | af5b304a4002fe8ebeb8f31cd0a481dfa4a944db (diff) | |
download | rails-099f10679ec6d9ead9606cac2f843e854787db0c.tar.gz rails-099f10679ec6d9ead9606cac2f843e854787db0c.tar.bz2 rails-099f10679ec6d9ead9606cac2f843e854787db0c.zip |
Don't eval recognize_optimized use __FILE__ and __LINE__ in the optimised 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>
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/routing/recognition_optimisation.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/routing/recognition_optimisation.rb b/actionpack/lib/action_controller/routing/recognition_optimisation.rb index 6c47ced6d1..3b98b16683 100644 --- a/actionpack/lib/action_controller/routing/recognition_optimisation.rb +++ b/actionpack/lib/action_controller/routing/recognition_optimisation.rb @@ -148,7 +148,7 @@ module ActionController end nil end - }, __FILE__, __LINE__ + }, '(recognize_optimized)', 1 end def clear_recognize_optimized! |