From: "shugo (Shugo Maeda)" Date: 2012-12-14T15:13:31+09:00 Subject: [ruby-core:50887] [ruby-trunk - Bug #7556] test error on refinement Issue #7556 has been updated by shugo (Shugo Maeda). phasis68 (Heesob Park) wrote: > Here is a modified version which does not disable function inline expansion. > > #ifdef _MSC_VER > #pragma optimize("g",off) > #endif I also tried it, but couldn't see improvement: C:\Users\shugo\Documents\Source\ruby>\ruby\bin\ruby bm_vm2_super.rb Rehearsal ----------------------------------------- super 1.856000 0.000000 1.856000 ( 1.868237) -------------------------------- total: 1.856000sec user system total real super 1.872000 0.000000 1.872000 ( 1.910743) C:\Users\shugo\Documents\Source\ruby>\ruby\bin\ruby bm_vm2_super.rb Rehearsal ----------------------------------------- super 1.841000 0.000000 1.841000 ( 1.860736) -------------------------------- total: 1.841000sec user system total real super 1.903000 0.016000 1.919000 ( 1.956249) C:\Users\shugo\Documents\Source\ruby>\ruby\bin\ruby bm_vm2_super.rb Rehearsal ----------------------------------------- super 1.872000 0.000000 1.872000 ( 1.927244) -------------------------------- total: 1.872000sec user system total real super 1.841000 0.000000 1.841000 ( 1.868237) And, other options of the optimize pragma such as "p" don't fix the problem. ---------------------------------------- Bug #7556: test error on refinement https://bugs.ruby-lang.org/issues/7556#change-34730 Author: usa (Usaku NAKAMURA) Status: Assigned Priority: Normal Assignee: ko1 (Koichi Sasada) Category: ext Target version: 2.0.0 ruby -v: ruby -v: ruby 2.0.0dev (2012-12-13 trunk 38354) [x64-mswin64_100] 1) Error: test_refine_recursion(TestRefinement): NoMethodError: undefined method `recursive_length' for "oo":String C:/Users/usa/ruby/test/ruby/test_refinement.rb:567:in `recursive_length'
:in `
' C:/Users/usa/ruby/test/ruby/test_refinement.rb:806:in `eval' C:/Users/usa/ruby/test/ruby/test_refinement.rb:806:in `eval_using' C:/Users/usa/ruby/test/ruby/test_refinement.rb:574:in `test_refine_recursion' On my box this error is 100% reproducible, but I also know that RubyCI and RubyInstaller CI don't report this error. I've heard that nobu reproduced this bug on x86_64-dawrin, but I don't know the detail of his environment. # Once I wrote the detail of my debuggin, but it is lost by accidenal reboot # of my PC. # I have no energy to rewrite it, because writing long English sentences # irritates me, especially after seeing mails which reproach our native # language. -- http://bugs.ruby-lang.org/