Skip to content
Commits on Mar 15, 2016
  1. @akr

    * enum.c (enum_inject): Consider redefinition of Fixnum#+.

      [ruby-dev:49510] [Bug#12178] Reported by usa.
    
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    akr committed Mar 15, 2016
  2. @znz

    fix a typo [ci skip]

    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    znz committed Mar 15, 2016
  3. @akr

    * enum.c (enum_inject): Implement the specialied code for :+ operator

      for Fixnums.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    akr committed Mar 15, 2016
  4. @akr

    * enum.c (enum_inject): Implement the specialized code for self is an

      array and a symbol operator is given.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    akr committed Mar 15, 2016
  5. * enc/unicode.c: Eliminating common code.

      (with Kimihito Matsui)
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    duerst committed Mar 15, 2016
  6. * enc/unicode.c: Expansion of some code repetition in preparation for

      elimination of common code pieces.
      (with Kimihito Matsui)
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    duerst committed Mar 15, 2016
  7. @nobu

    gc.c: mark_stack_locations

    * gc.c (mark_stack_locations): extract the common part from
      mark_current_machine_context and rb_gc_mark_machine_stack.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Mar 15, 2016
  8. @nobu

    gc.c: rb_objspace_of

    * gc.c (rb_objspace_of): macro to get the objspace from a thread.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Mar 15, 2016
  9. @nobu

    gc.c: expand a local macro

    * gc.c (mark_current_machine_context, rb_gc_mark_machine_stack):
      expand rb_gc_mark_locations local macro.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Mar 15, 2016
  10. * remove trailing spaces.

    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    svn committed Mar 15, 2016
  11. * enc/unicode.c: Additional macros and code to use mapping data in

      CaseMappingSpecials array.
      (with Kimihito Matsui)
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    duerst committed Mar 15, 2016
  12. @nobu

    internal.h: private rb_gc_mark_global_tbl

    * internal.h (rb_gc_mark_global_tbl): should be private,
      but was accidentally exported.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Mar 15, 2016
  13. @hsbt

    * doc/extension.ja.rdoc: Fix RDoc markup in doc/extension*.rdoc.

      [ci skip][Bug #12143][ruby-core:74143]
    * doc/extension.rdoc: ditto.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    hsbt committed Mar 15, 2016
  14. @hsbt

    * time.c: Minor typo in Time#dst? documentation.

      [ci skip][fix GH-1290]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    hsbt committed Mar 15, 2016
  15. @nobu

    test_marshal.rb: use assert_ruby_status

    * test/ruby/test_marshal.rb (test_marshal_load_extended_class_crash):
      use assert_ruby_status to deal with signals, core dump and
      diagnostic reports.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Mar 15, 2016
  16. @nobu

    test_rubyoptions.rb: VERSION_PATTERN

    * test/ruby/test_rubyoptions.rb (VERSION_PATTERN): make the
      pattern at loading, and escape regexp meta characters.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Mar 15, 2016
Commits on Mar 14, 2016
  1. * test/ruby/test_rubyoptions.rb (test_disable): add tests for

      --disable-gems and --disable-did_you_mean.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    headius committed Mar 14, 2016
  2. @drbrain

    * marshal.c (r_object0): Fix Marshal crash for corrupt extended object.

    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    drbrain committed Mar 14, 2016
  3. * 2016-03-15

    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    svn committed Mar 14, 2016
  4. * test/ruby/test_rubyoptions.rb: make version matching support

      JRuby's version output.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    headius committed Mar 14, 2016
  5. @nurse

    * bignum.c (big2str_2bdigits): reduce div instruction.

    Fix the code so that C compiler unify div instructions of `%` and `/`.
    
    Before:
      4291b0:       48 89 f0                mov    %rsi,%rax
      4291b3:       31 d2                   xor    %edx,%edx
      4291b5:       48 83 ef 01             sub    $0x1,%rdi
      4291b9:       48 f7 f1                div    %rcx  # <---- !
      4291bc:       41 0f b6 04 11          movzbl (%r9,%rdx,1),%eax
      4291c1:       31 d2                   xor    %edx,%edx
      4291c3:       41 88 04 38             mov    %al,(%r8,%rdi,1)
      4291c7:       48 63 4b 04             movslq 0x4(%rbx),%rcx
      4291cb:       48 89 f0                mov    %rsi,%rax
      4291ce:       48 f7 f1                div    %rcx  # <---- !
      4291d1:       48 89 c6                mov    %rax,%rsi
      4291d4:       48 85 ff                test   %rdi,%rdi
      4291d7:       75 d7                   jne    4291b0 <big2str_2bdigits+0x50>
      4291d9:       48 63 6b 10             movslq 0x10(%rbx),%rbp
      4291dd:       48 01 6b 20             add    %rbp,0x20(%rbx)
      4291e1:       48 8b 44 24 48          mov    0x48(%rsp),%rax
      4291e6:       64 48 33 04 25 28 00    xor    %fs:0x28,%rax
    
    After:
      4291b0:       48 63 73 04             movslq 0x4(%rbx),%rsi
      4291b4:       31 d2                   xor    %edx,%edx
      4291b6:       48 83 e9 01             sub    $0x1,%rcx
      4291ba:       48 f7 f6                div    %rsi  # <---- !
      4291bd:       41 0f b6 14 10          movzbl (%r8,%rdx,1),%edx
      4291c2:       88 14 0f                mov    %dl,(%rdi,%rcx,1)
      4291c5:       48 85 c9                test   %rcx,%rcx
      4291c8:       75 e6                   jne    4291b0 <big2str_2bdigits+0x50>
      4291ca:       48 63 6b 10             movslq 0x10(%rbx),%rbp
      4291ce:       48 01 6b 20             add    %rbp,0x20(%rbx)
      4291d2:       48 8b 44 24 48          mov    0x48(%rsp),%rax
      4291d7:       64 48 33 04 25 28 00    xor    %fs:0x28,%rax
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nurse committed Mar 14, 2016
  6. * include/ruby/oniguruma.h, enc/unicode.c: Adjusting flag assignments

      and macros to work with unified CaseMappingSpecials array.
      (with Kimihito Matsui)
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    duerst committed Mar 14, 2016
  7. @nobu

    optimize named capture assignment

    * compile.c (compile_named_capture_assign): optimize named capture
      assignments, by replacing repeating global variable accesses
      with `dup`, and by returning the matched result instead of
      re-getting it from the MatchData.
    
    * parse.y (reg_named_capture_assign_gen): build just assignment
      nodes for the optimization.
    
    ex. `/(?<x>.)/ =~ "bar"`
    
    - old
      ```
      0000 putstring        "bar"
      0002 opt_regexpmatch1 /(?<x>.)/
      0004 pop
      0005 getglobal        $~
      0007 branchunless     25
      0009 getglobal        $~
      0011 putobject        :x
      0013 opt_aref         <callinfo!mid:[], argc:1, ARGS_SIMPLE>
      0016 setlocal_OP__WC__0 2
      0018 getglobal        $~
      0020 putobject_OP_INT2FIX_O_0_C_
      0021 opt_send_without_block <callinfo!mid:begin, argc:1, ARGS_SIMPLE>
      0024 leave
      0025 putobject        nil
      0027 setlocal_OP__WC__0 2
      0029 putobject        nil
      0031 leave
      ```
    
    - new
      ```
      0000 putstring        "bar"
      0002 opt_regexpmatch1 /(?<x>.)/
      0004 getglobal        $~
      0006 dup
      0007 branchunless     14
      0009 putobject        :x
      0011 opt_aref         <callinfo!mid:[], argc:1, ARGS_SIMPLE>
      0014 setlocal_OP__WC__0 2
      0016 leave
      ```
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Mar 14, 2016
  8. @nobu

    ruby.c: reduce fstat

    * file.c (ruby_is_fd_loadable): now return -1 if loadable but
      may block.
    * ruby.c (open_load_file): wait to read by the result of
      ruby_is_fd_loadable, without fstat.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Mar 14, 2016
  9. @nurse

    * numeric.c (fix2str): improve r54092 like rb_int2big().

    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nurse committed Mar 14, 2016
  10. document OpenSSL::SSL::SSLContext#setup as MT-unsafe

    On a cursory inspection, using rb_block_call for extra_chain_cert
    is thread-unsafe.  There may be other instances of thread-unsafe
    behavior in this method, but one is enough.
    
    * ext/openssl/ossl_ssl.c (ossl_sslctx_setup): document as MT-unsafe
      [ruby-core:73803] [Bug #12069]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    normal committed Mar 14, 2016
Commits on Mar 13, 2016
  1. * 2016-03-14

    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    svn committed Mar 13, 2016
  2. @nobu

    parse.y: adjust indent

    * parse.y: adjust indent and tabify spaces after tabs.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Mar 13, 2016
  3. @nobu

    win32.h: fix O_SHARE_DELETE

    * include/ruby/win32.h (O_SHARE_DELETE): change to fit Fixnum
      limit.  [ruby-core:74285] [Bug #12171]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Mar 13, 2016
  4. * 2016-03-13

    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    svn committed Mar 13, 2016
  5. @nobu

    numeric.c: fix edge case

    * numeric.c (rb_fix2str): fix edge case, accidentally generated
      wrong Fixnum from LONG_MIN.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Mar 13, 2016
Commits on Mar 12, 2016
  1. @nobu

    unicode.c: off-by-one error

    * enc/unicode.c (CodePointListValidP): fix off-by-one error.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Mar 12, 2016
  2. @nobu

    unicode.c: boundary check

    * enc/unicode.c (CodePointListValidP): add pathological boundary
      check, for gcc 4.9.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Mar 12, 2016
  3. @nobu

    Malformed RDoc syntax in catch [ci skip]

    * vm_eval.c (rb_f_catch): [DOC] fix malformed RDoc syntax, "+...+"
      cannot enclose non-identifier characters.
      a patch by Sebastian S in [ruby-core:74278].  [Bug#12170]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu committed Mar 12, 2016
Commits on Mar 11, 2016
  1. * 2016-03-12

    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    svn committed Mar 11, 2016
Something went wrong with that request. Please try again.