Hidden bug in load.c rb_feature_p
|ruby -v:||ruby 1.9.3p0 (2011-10-30 revision 33570) [i686-linux]||Backport:|
lazy assigned loadpath searched in loadingtable were not expanded
but all features, pushed to loading table, are expanded.
This bug is hidden because loadpath is allways filled in loadedfeatures loop
but if we try to optimize this loop (#5427), then load_path could be not filled, and bug exposed.
(pull request on github https://github.com/ruby/ruby/pull/63 )
#1 Updated by Nobuyoshi Nakada over 2 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r34013.
Yura, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- load.c (rbfeaturep): lazy assigned loadpath searched in loadingtable were not expanded, but all features, pushed to loading table, are expanded. a patch by Yura Sokolov in . [Bug #5727]