summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-01-05[ruby/io-console] [DOC] Note that IO#getpass returns a chomped stringMarcus Stollsteimer
IO#getpass uses String#chomp! on the read input line. https://github.com/ruby/io-console/commit/1e98c93bc8
2021-01-05Commented out the sh-specific code, in cmd.exeNobuyoshi Nakada
2021-01-05configure.ac: Stop auto-detection of __ANDROID_API__ when cross-compilingYusuke Endoh
A patch from Tee KOBAYASHI <xtkoba+ruby@gmail.com>. [Bug #17491]
2021-01-04Fix broken JIT of getinlinecacheTakashi Kokubun
e7fc353f04 reverted vm_ic_hit_p's signature change made in 53babf35ef, which broke JIT compilation of getinlinecache. To make sure it doesn't happen again, I separated vm_inlined_ic_hit_p to make the intention clear.
2021-01-04Avoid using inconsistent coding styleTakashi Kokubun
Other `_mjit_compile_*.erb` files don't use goto. These files'd better be consistent for readability.
2021-01-05enable constant cache on ractorsKoichi Sasada
constant cache `IC` is accessed by non-atomic manner and there are thread-safety issues, so Ruby 3.0 disables to use const cache on non-main ractors. This patch enables it by introducing `imemo_constcache` and allocates it by every re-fill of const cache like `imemo_callcache`. [Bug #17510] Now `IC` only has one entry `IC::entry` and it points to `iseq_inline_constant_cache_entry`, managed by T_IMEMO object. `IC` is atomic data structure so `rb_mjit_before_vm_ic_update()` and `rb_mjit_after_vm_ic_update()` is not needed. Notes: Merged: https://github.com/ruby/ruby/pull/4022
2021-01-05stdlib.h is always included in include/ruby/defines.hNobuyoshi Nakada
Since commit:6537dc309962c7fefcb8d698bbebe4e4f78d0096.
2021-01-05Update compilers.h [ci skip]Gui Heurich
Notes: Merged: https://github.com/ruby/ruby/pull/4023 Merged-By: nobu <nobu@ruby-lang.org>
2021-01-05Fix indent [ci skip]Kazuhiro NISHIYAMA
Suggested by @hanachin at https://github.com/rurema/doctree/pull/2425#discussion_r551327592
2021-01-05* 2021-01-05 [ci skip]git
2021-01-04ripper: call #pretty_print on also `state`Nobuyoshi Nakada
2021-01-04make-snapshot: add -extlibs optionNobuyoshi Nakada
`make-snapshot` with `-extlibs` (or `-extlibs=yes`) includes extracted and patched external library sources that the extension libraries depend on.
2021-01-04Updated bundled_gemsNobuyoshi Nakada
2021-01-04Skip mjit_wait if iseq is not a targetTakashi Kokubun
2021-01-04Daily bundled_gems update [ci skip]Nobuyoshi Nakada
2021-01-04ifchange: check the number of argumentsNobuyoshi Nakada
2021-01-04[DOC] Update Proc.new without a block [ci skip]Nobuyoshi Nakada
[Feature #10499] [Feature #15554]
2021-01-03Add a missing dependencyTakashi Kokubun
2021-01-04Update ext/bigdecimal/dependKenta Murata
2021-01-04[ruby/bigdecimal] Move some definitions to missing.hKenta Murata
https://github.com/ruby/bigdecimal/commit/c2b22cc8b3 https://github.com/ruby/bigdecimal/commit/8cbca8481d https://github.com/ruby/bigdecimal/commit/f05aecf673
2021-01-04Track Bundler master(2.3.0.dev) branch at ↵Hiroshi SHIBATA
55634a8af18a52df86c4275d70fa1179118bcc20 Notes: Merged: https://github.com/ruby/ruby/pull/4021
2021-01-04Track RubyGems master(3.3.0.dev) branch at ↵Hiroshi SHIBATA
55634a8af18a52df86c4275d70fa1179118bcc20 Notes: Merged: https://github.com/ruby/ruby/pull/4021
2021-01-04Fixed error message when % at EOFNobuyoshi Nakada
2021-01-04* 2021-01-04 [ci skip]git
2021-01-04Revert "Include RUBY_EXTCONF_H if available"Kenta Murata
It is unnecessary because RUBY_EXTCONF_H has already been included in ruby/internal/config.h. This reverts commit 0644f466b0ef017202712882b557ba32863002c4.
2021-01-03Added tests for Time#getlocal with UTC offsetNobuyoshi Nakada
2021-01-03Include RUBY_EXTCONF_H if availableKenta Murata
2021-01-03[ruby/timeout] Removed deprecated names that had been warned for 5 yearsNobuyoshi Nakada
https://github.com/ruby/timeout/commit/f9a9758a41
2021-01-03Avoid hanging on --jit-wait after MJIT.pauseTakashi Kokubun
When a worker is stopped, nobody will JIT a method for you.
2021-01-03* 2021-01-03 [ci skip]git
2021-01-02NEWS-3.0.0: backquote a few code related words. [doc]Marc-Andre Lafortune
2021-01-02NEWS: We have links now, and there is no changelog anymore [doc]Marc-Andre Lafortune
2021-01-02NEWS: [Feature #17312] [ci skip]Nobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/3851
2021-01-02Add Enumerable#compact and Enumerator::Lazy#compactzverok
Notes: Merged: https://github.com/ruby/ruby/pull/3851
2021-01-02Fixed dangling imemo_tmpbufNobuyoshi Nakada
The count of rb_alloc_tmp_buffer_with_count is the allocation size counted in VALUE size but not in the requested element size. Co-authored-by: Yusuke Endoh <mame@ruby-lang.org> Co-authored-by: Koichi Sasada <ko1@atdot.net>
2021-01-02mkmf.rb: always try_compile as try_headerNobuyoshi Nakada
Get rid of "present but cannot be compiled" headers, on some multi-architecture platforms.
2021-01-02Avoid to use __builtin_clzl in SPARC SolarisKenta Murata
2021-01-01Add -v to make benchmarkTakashi Kokubun
I simply can't tell which of compare-ruby and built-ruby is what.
2021-01-01Improve performance some Float methods [Feature #17498] (#4018)S.H
Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
2021-01-02Add __x86_64__ guard to include x86intrin.hKenta Murata
2021-01-02Check if x86intrin.h is available not only existingNobuyoshi Nakada
2021-01-02[ruby/bigdecimal] Update dependKenta Murata
2021-01-02[ruby/bigdecimal] Fix test for Ruby 2.4Kenta Murata
Ruby 2.4 does not have RbConfig::LIMITS. https://github.com/ruby/bigdecimal/commit/c8087523b0
2021-01-02[ruby/bigdecimal] Implement special conversions for 64-bit integersKenta Murata
This change improves the conversion speed from small integers. ``` Comparison: big_n9 master: 4003688.9 i/s bigdecimal 3.0.0: 1270551.0 i/s - 3.15x slower big_n19 master: 5410096.4 i/s bigdecimal 3.0.0: 1000250.3 i/s - 5.41x slower ``` https://github.com/ruby/bigdecimal/commit/3429bd7e6f
2021-01-02* 2021-01-02 [ci skip]git
2021-01-02[ruby/bigdecimal] Fix test_limitKenta Murata
Keep the default value of BigDecimal.limit by BigDecimal.save_limit to avoid failures of the other test methods due to the unexpected limit. https://github.com/ruby/bigdecimal/commit/bdc1cc6585
2021-01-01Hoisted out compile_builtin_arg to refine messagesNobuyoshi Nakada
2021-01-01Added AST assertions for method definition arguments [Bug #17495]Nobuyoshi Nakada
2021-01-01Added AST tests for endless method definitionsNobuyoshi Nakada
2021-01-01Make args info for RubyVM::AST to available on endless method without parensMasataka Pocke Kuwabara
Problem === Arguments information is missing for endless method without parens. For example: ```ruby # ok pp RubyVM::AbstractSyntaxTree.parse(<<~RUBY).children[2] def x() = 42 RUBY # => (DEFN@1:0-1:12 # mid: :x # body: # (SCOPE@1:0-1:12 # tbl: [] # args: # (ARGS@1:5-1:6 # pre_num: 0 # pre_init: nil # opt: nil # first_post: nil # post_num: 0 # post_init: nil # rest: nil # kw: nil # kwrest: nil # block: nil) # body: (LIT@1:10-1:12 42))) # ok pp RubyVM::AbstractSyntaxTree.parse(<<~RUBY).children[2] def x() 42 end RUBY # => (DEFN@1:0-1:14 # mid: :x # body: # (SCOPE@1:0-1:14 # tbl: [] # args: # (ARGS@1:5-1:6 # pre_num: 0 # pre_init: nil # opt: nil # first_post: nil # post_num: 0 # post_init: nil # rest: nil # kw: nil # kwrest: nil # block: nil) # body: (LIT@1:8-1:10 42))) # It has a problem, the `args` is nil pp RubyVM::AbstractSyntaxTree.parse(<<~RUBY).children[2] def x = 42 RUBY # => (DEFN@1:0-1:10 # mid: :x # body: (SCOPE@1:0-1:10 tbl: [] args: nil body: (LIT@1:8-1:10 42))) ``` It causes an error if a program expects `args` node exists. For example: https://github.com/ruby/rbs/issues/551 Solution ==== Call `new_args` on this case. Notes: Merged: https://github.com/ruby/ruby/pull/4016 Merged-By: nobu <nobu@ruby-lang.org>