Permalink
Commits on Aug 18, 2017
  1. vm_insnhelper.c: vm_cfp_consistent_p

    * vm_insnhelper.c (vm_cfp_consistent_p): extracted the conditions
      for cfp consistency.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Aug 18, 2017
  2. vm_insnhelper.c: raise ruby_error_sysstack_gc

    * vm_insnhelper.c (rb_threadptr_stack_overflow): rb_fatal is not
      available during GC.  raise the preallocated fatal error.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Aug 18, 2017
  3. test/net/imap/test_imap.rb: Use Addrinfo.tcp in case localhost is ::1.

    [ruby-dev:50208] [Bug #13825]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    shugo committed Aug 18, 2017
Commits on Aug 17, 2017
  1. Revert r59612

    * method.h (rb_method_definition_t): rb_method_type_t should be
      unsigned as it needs 5bits at least for signed extension.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Aug 17, 2017
  2. * 2017-08-18

    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    svn committed Aug 17, 2017
  3. Add optimization for creating zerofill string

    ```
    require 'benchmark'
    n = 1 * 1024 * 1024 * 1024
    Benchmark.bmbm do |x|
      x.report("*") { 0.chr * n }
      x.report("ljust") { String.new(capacity: n).ljust(n, "\0") }
    end
    ```
    
    Before
    
    ```% ./ruby test.rb
    Rehearsal -----------------------------------------
    *       0.358396   0.392753   0.751149 (  1.134231)
    ljust   0.203277   0.389223   0.592500 (  0.594816)
    -------------------------------- total: 1.343649sec
    
                user     system      total        real
    *       0.282647   0.304600   0.587247 (  0.589205)
    ljust   0.201834   0.283801   0.485635 (  0.487617)
    ```
    
    After
    
    ```% ./ruby test.rb
    Rehearsal -----------------------------------------
    *       0.000522   0.000021   0.000543 (  0.000534)
    ljust   0.208551   0.321030   0.529581 (  0.542083)
    -------------------------------- total: 0.530124sec
    
                user     system      total        real
    *       0.000069   0.000006   0.000075 (  0.000069)
    ljust   0.206698   0.301032   0.507730 (  0.517674)
    ```
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nurse committed Aug 17, 2017
  4. vm_method.c: alias warning at refined method

    * vm_method.c (rb_method_entry_make): suppress a warning at
      refined method which will not be redefined.
      [ruby-core:82385] [Bug #13817]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Aug 17, 2017
  5. method.h: enum rb_method_definition_t::type

    * method.h (rb_method_definition_t): define type as an enum for
      debugging.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Aug 17, 2017
  6. parse.y: unexpected tINTEGER message

    * parse.y (parser_number_literal_suffix): keep token after numeric
      suffix to show the value in an error message.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Aug 17, 2017
  7. * 2017-08-17

    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    svn committed Aug 17, 2017
  8. Use `*` instead of `**` in .editorconfig

    It seems `**` is same as `*` when no `/` exist.
    [ci skip]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    znz committed Aug 17, 2017
Commits on Aug 16, 2017
  1. Extract files variables of ipaddr.gemspec for non git environment.

      [Bug #13808][ruby-core:82358]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    hsbt committed Aug 16, 2017
  2. Added gemspec of digest library.

      standalone repository is https://github.com/ruby/digest
      [Misc #13771][ruby-core:82179]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    hsbt committed Aug 16, 2017
  3. vm_insnhelper.c: cfp error at stack overflow

    * vm_insnhelper.c (threadptr_stack_overflow): set stack overflow
      flag until handling execptions, to get rid of cfp consistency
      error when exec tag was rewound.  [ruby-core:80618] [Bug #13412]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Aug 16, 2017
Commits on Aug 15, 2017
  1. Partially revert "suppress warning: assigned but unused variable - line"

    revert unexpected changes
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nurse committed Aug 15, 2017
  2. suppress warning: assigned but unused variable - line

    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nurse committed Aug 15, 2017
  3. * 2017-08-16

    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    svn committed Aug 15, 2017
  4. High Sierra's APFS cannot use invalid filenames [Bug #13816]

    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nurse committed Aug 15, 2017
  5. parse.y: removed useless check

    * parse.y (singleton): literal nodes are always value expressions,
      no check is necessary.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Aug 15, 2017
  6. Remove not exist arguments from comments of insns

    is_local argument was introduced on r11639 and removed on r11813.
    
    * insns.def (getinstancevariable, setinstancevariable): Remove a not
      exist argument.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    yui-knk committed Aug 15, 2017
  7. suppress warning: assigned but unused variable - line

    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nurse committed Aug 15, 2017
  8. ftp.rb: fix example format [ci skip]

    * lib/uri/ftp.rb: [DOC] fix format of example URLs.  patched by
      aycabta (Code Ahss) at [ruby-core:82379].  [Bug #13814]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Aug 15, 2017
  9. ripper.rb: fix License format [ci skip]

    * ext/ripper/lib/ripper.rb: [DOC] fix format of the License
      description and the author.  patched by aycabta (Code Ahss) at
      [ruby-core:82376].  [Bug #13813]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Aug 15, 2017
  10. compile.c: compile_retry

    * compile.c (compile_retry): extract from iseq_compile_each.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Aug 15, 2017
  11. compile.c: compile_redo

    * compile.c (compile_redo): extract from iseq_compile_each.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Aug 15, 2017
  12. compile.c: compile_next

    * compile.c (compile_next): extract from iseq_compile_each.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Aug 15, 2017
Commits on Aug 14, 2017
  1. compile.c: compile_break

    * compile.c (compile_break): extract from iseq_compile_each.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Aug 14, 2017
  2. * 2017-08-15

    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    svn committed Aug 14, 2017
  3. fix documentation of REXML::Formatters::Default (id_hack -> ie_hack) …

    …[ci skip]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    duerst committed Aug 14, 2017
  4. compile.c: compile_loop

    * compile.c (compile_loop): extract from iseq_compile_each.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Aug 14, 2017
  5. type is invariant inside this block

    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Aug 14, 2017
  6. * 2017-08-14

    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    svn committed Aug 14, 2017
  7. Fix a class of a returned value

    * ext/objspace/object_tracing.c (allocation_sourceline): Fix
      a class of a returned value. allocation_sourceline returns
      an integer.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    yui-knk committed Aug 14, 2017
Commits on Aug 13, 2017
  1. script.rb: skip empty directories

    * spec/mspec/lib/mspec/utils/script.rb (entries): skip empty
      directories so that at least one file would run.
    
    Merged ruby/spec#459
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Aug 13, 2017
  2. parse.y: set used flag in gettable

    * parse.y (dvar_defined_ref, dvar_defined): rename macros.  only
      gettable uses the former.  assignable should not set LVAR_USED
      flag.
    
    * parse.y (gettable_gen): set used flag on local/dynamic variables
      instead of setting in lexer.  [ruby-core:82368] [Bug #13809]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Aug 13, 2017