[ruby-cvs:54796] nobu:r47648 (trunk): compile.c: store IDs as Symbols

nobu at ruby-lang.org nobu at ruby-lang.org
Sat Sep 20 10:23:02 JST 2014


nobu	2014-09-20 10:23:02 +0900 (Sat, 20 Sep 2014)

  New Revision: 47648

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47648

  Log:
    compile.c: store IDs as Symbols
    
    * compile.c (iseq_set_arguments): store local variable IDs in
      temporary list as Symbols.  previously these are stored as
      Fixnums to prevent from GC, but IDs of dynamic symbols can
      exceed Fixnum range and cause RangeError at inverting from
      Fixnum.  [ruby-dev:48564] [Bug #10266]

  Modified files:
    trunk/ChangeLog
    trunk/compile.c
    trunk/test/ruby/test_keyword.rb


More information about the ruby-cvs mailing list