aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* check ar_table first.Koichi Sasada2020-03-261-2/+5
| | | | | | | RHASH_AR_TABLE_SIZE() has assertion that it is a ar_talbe. The last commit breaks this assumption so check ar_table first. (cherry picked from commit c3584dfacce4d0f2058d8403de6fdce4fd4d686b)
* check ar_table after `#hash` callKoichi Sasada2020-03-262-0/+76
| | | | | | | | | ar_table can be converted to st_table just after `ar_do_hash()` function which calls `#hash` method. We need to check the representation to detect this mutation. [Bug #16676] (cherry picked from commit 4c019f5a626523e99e2827ed917802e3097c380d)
* check flags passed to rb_nogvl()Koichi Sasada2020-03-261-1/+1
| | | | | | | | RB_NOGVL_UBF_ASYNC_SAFE is wrongly specified because flags is not checked. [Bug #15499] 23444302 (cherry picked from commit ff98931daca1265e5bd33025d160c77e452c399e)
* Add missing write barrier for Hash#transform_values{,!}Alan Wu2020-03-261-3/+4
| | | | | | | | | 21994b7fd686f263544fcac1616ecf3189fb78b3 removed the write barrier that was present in rb_hash_aset(). Re-insert it to not crash during GC. [Bug #16689] (cherry picked from commit 713dc619f5372a645b66bef9dacee217c4101cb4)
* Do not make disabled directories at installation [Bug #12392]Nobuyoshi Nakada2020-03-261-4/+8
| | | | (cherry picked from commit 8a6ba10f9dd456cf54de800203cf04bbe42271fb)
* Use power_assert 1.1.7NARUSE, Yui2020-03-261-1/+1
| | | | | | | | Mainly for pry compatibility in test https://github.com/k-tsj/power_assert/commit/dcc14cbef48d9790187fa400a5df7531d81a5971 Also include "Show full_message if available" https://github.com/k-tsj/power_assert/commit/53ce0400bf47f722830d6604be0a2e30cccabf34
* [ruby/stringio] StringIO#initialize default to the source string encodingJean Boussier2020-03-153-4/+21
| | | | | | | [Bug #16497] https://github.com/ruby/stringio/commit/4958a5ccab (cherry picked from commit e257c08f2ec27e2d66cdfa7e2415deb492522e22)
* Do not autosplat when calling proc with empty keyword splatJeremy Evans2020-03-152-1/+22
| | | | | | | | | | | | | | With the removal of the splatted argument when using an empty keyword splat, the autosplat code considered an empty keyword splat the same as no argument at all. However, that results in autosplat behavior changing dependent on the content of the splatted hash, which is not what anyone would expect or want. This change always skips an autosplat if keywords were provided. Fixes [Bug #16560] (cherry picked from commit c1d8829ef515ee51fadeadd7dd022b5c47a71cdd)
* * 2020-03-15 [ci skip]git2020-03-151-1/+1
|
* Prevent unloading methods used in root_fiber while calling another Fiber (#2939)Takashi Kokubun2020-03-154-8/+50
| | | | | | | | | | Fixing SEGVs like: http://ci.rvm.jp/results/trunk-mjit-wait@silicon-docker/2744905 http://ci.rvm.jp/results/trunk-mjit-wait@silicon-docker/2744420 http://ci.rvm.jp/results/trunk-mjit-wait@silicon-docker/2741400 [Bug #16664] (cherry picked from commit adcf0316d1ecedae2a9157ad941550e0c0fb510b)
* Avoid infinite loop on --jit-waitTakashi Kokubun2020-03-152-5/+34
| | | | (cherry picked from commit a8dcab723316997d9e01c89d6df969edce75bdca)
* Fix SimpleDelegator respond_to? regressionJean Boussier2020-03-152-1/+22
| | | | | | | | | | | In 2.6, SimpleDelegator would always use the target `respond_to?` In 2.7.0 it doesn't if the target does not inherit from Object. This breaks compatibility for delegated objects that inherit from BasicObject and redefine `respond_to?`. [Bug #16606] (cherry picked from commit f2552216d43040cd42bbb9fd484eab6c70856fe6)
* delegate.rb: fixed keyword arguments in DelegateClassNobuyoshi Nakada2020-03-152-1/+9
| | | | | | | `Delegator.delegating_block` should delegate keyword arguments separately. [ruby-core:96949] (cherry picked from commit 9bcf4f3db26249772c983896ebbc9ff41f4614db)
* Make ruby2_keywords methods correctly handle **{} optimizationJeremy Evans2020-03-152-0/+22
| | | | | | | | | | | | | | | | Previously, this code: ruby2_keywords def foo(*a) a.last end foo(**{}) Returned an empty frozen hash. However, the final hash should not be frozen in this case, as it wouldn't be if foo accepted a keyword splat. Use a new unfrozen empty hash instead of reusing the frozen empty hash in this case. Fixes [Bug #16642]
* * 2020-03-14 [ci skip]git2020-03-141-1/+1
|
* Drop MinGW build from AppVeyorTakashi Kokubun2020-03-141-50/+0
| | | | | | in favor of #2791 (cherry picked from commit b00418732c89ce42c1c4cef57d08344659fbdd2b)
* Don't display singleton class in Method#inspect unless method defined thereJeremy Evans2020-03-143-1/+34
| | | | | | | | | | | | | | Previously, if an object has a singleton class, and you call Object#method on the object, the resulting string would include the object's singleton class, even though the method was not defined in the singleton class. Change this so the we only show the singleton class if the method is defined in the singleton class. Fixes [Bug #15608] (cherry picked from commit e02bd0e713ef920e6d12c27f16548f48ec5c2cf0)
* Fixed duplicated warningNobuyoshi Nakada2020-03-142-6/+6
| | | | | | | As `command_rhs` is always a "value expression", `command_asgn` does not need the same check. [Bug #16619] (cherry picked from commit 6e6844320de989cb88a154e2ac75066ccea1bba2)
* Fixed symbol misused as IDNobuyoshi Nakada2020-03-143-4/+13
| | | | | | | `rb_funcallv_public` and `rb_respond_to` require an `ID`, not a `Symbol`. [Bug #16649] (cherry picked from commit 8b6e2685a4b7c7de905f7ed60c02ef85e0724754)
* Pass keyword arguments to IOs properly [Bug #16639]Nobuyoshi Nakada2020-03-132-2/+13
| | | | (cherry picked from commit 041c2932e336b509b0ddc1fdbd9f160bce8d4893)
* lib/drb/drb.rb: Use ruby2_keywords for keyword separationYusuke Endoh2020-03-133-1/+29
| | | | | | [Bug #16634] (cherry picked from commit fb472ca7adbaceb35aae1b3a6b948720ffc9eb53)
* Add the loaded feature after no exception raisedNobuyoshi Nakada2020-03-132-2/+8
| | | | | | | Retrying after rescued `require` should try to load the same library again. [Bug #16607] (cherry picked from commit 7d6903dc476f982e7b432adbeef3a3d9372a309f)
* fix the order of definitionNARUSE, Yui2020-03-131-1/+1
|
* Use osuosl instead of GitHub releasesHiroshi SHIBATA2020-03-131-3/+3
| | | | | | Because the package provided by GitHub releases is different from sourceware. (cherry picked from commit 47a1872cd8b901b8aab6dedce7fa3807c97d290d)
* Switch to download libffi source package to github releases from sourceware.orgHiroshi SHIBATA2020-03-131-3/+3
| | | | | [Bug #16681] (cherry picked from commit 86022167461dc90b70164e2bb23316959bbfd6ba)
* [ruby/io-console] Set `OPOST` when `intr` is trueNobuyoshi Nakada2020-03-131-0/+1
| | | | | | | | | | To enable implementation-defined output processing, for the compatibility with readline. [Bug #16509] https://bugs.ruby-lang.org/issues/16509 https://github.com/ruby/io-console/commit/8c8b0b6757 (cherry picked from commit 4e56ec4ef74cf77dbcb4ce7c669e0595cd0d12fa)
* Separate objspace argument for rb_gc_disable and rb_gc_enableNobuyoshi Nakada2020-03-132-6/+27
| | | | (cherry picked from commit aeaf0dc55595b8a5bfdd92007fb85ef13855c632)
* Skip empty directories to install [Bug #16596]Nobuyoshi Nakada2020-03-131-1/+2
| | | | (cherry picked from commit 33d02e6bc7502c5a3f09c59908a8c9f08a474b8d)
* Squashed commit of the following: [Backport #16516]NARUSE, Yui2020-03-133-2/+15
| | | | | | | | | | | | | | commit c98c492578d898dc07a04b8240d8d5b1508ffafa Author: Nobuyoshi Nakada <nobu@ruby-lang.org> Date: Fri Jan 17 16:56:53 2020 +0900 Added test for f38b3e8c707ebdcad05aa9485cf1760640b74fbb commit f38b3e8c707ebdcad05aa9485cf1760640b74fbb Author: Nobuyoshi Nakada <nobu@ruby-lang.org> Date: Thu Jan 16 18:34:31 2020 +0900 Fixed the location of args node with numbered parameter
* Disable GC until VM objects get initialized [Bug #16616]Nobuyoshi Nakada2020-03-133-0/+4
|
* Increase the frozen_strings table initial sizeJean Boussier2020-03-131-1/+1
| | | | | | | | | | | It was set to 1000 in a4a2b9be7a55bb61d17cf9673ed0d2a93bb52d31. However on ruby-2.7.0p0, there are much more than 1k frozen string right after boot: ``` $ ruby -robjspace -e 'p ObjectSpace.each_object(String).select { |s| s.frozen? && ObjectSpace.dump(s).include?(%{"fstring":true})}.uniq.count' 5948 ```
* * 2020-03-13 [ci skip]git2020-03-131-2/+2
|
* Update documentation for Array/Hash Argument section of methods.rdocAdam Isom2020-03-131-2/+13
| | | | [Bug #16514]
* Use `brew upgrade` instead of `brew update`Kazuhiro NISHIYAMA2020-02-201-1/+1
|
* * 2020-02-20 [ci skip]git2020-02-201-1/+1
|
* Avoid jumping to a wrong destinationTakashi Kokubun2020-02-202-2/+17
| | | | when the next insn is already compiled by former branches.
* * 2020-02-18 [ci skip]git2020-02-181-1/+1
|
* increment teenyNARUSE, Yui2020-02-181-2/+2
|
* Fix typo s/test_ruby2_keywords_hash!/test_ruby2_keywords_hash/Ryuta Kamizono2020-02-181-1/+1
| | | In #2818, `Hash.ruby2_keywords!` has renamed to `Hash.ruby2_keywords_hash`.
* hash.c: Add a feature to manipulate ruby2_keywords flagYusuke Endoh2020-02-182-0/+73
| | | | | | | | | | | | | | | It was found that a feature to check and add ruby2_keywords flag to an existing Hash is needed when arguments are serialized and deserialized. It is possible to do the same without explicit APIs, but it would be good to provide them as a core feature. https://github.com/rails/rails/pull/38105#discussion_r361863767 Hash.ruby2_keywords_hash?(hash) checks if hash is flagged or not. Hash.ruby2_keywords_hash(hash) returns a duplicated hash that has a ruby2_keywords flag, [Bug #16486]
* * 2020-02-13 [ci skip]git2020-02-131-3/+3
|
* Return the makefile contentNobuyoshi Nakada2020-02-131-0/+1
| | | | | Block for `create_makefile` is expected to return the content of the makefile.
* Move .IGNORE in extconf.rbNARUSE, Yui2020-02-132-3/+1
|
* Support nmakeNARUSE, Yui2020-02-131-0/+2
|
* Ignore expected errors on compiling C++ source [Bug #16331]NARUSE, Yui2020-02-131-0/+1
| | | | | | | | | | | | | | BSD make can run parallel more aggressively than GNU make. It communicate with other make process through -J option in MAKEFLAGS environment variable to notify a build failure happend in an other pararell make process. https://www.freebsd.org/cgi/man.cgi?make It usually works well but ext/-test-/cxxanyargs/Makefile has two targets which are expected to fail (failure.o and failurem1.o). Additional note: To test and debug this issue, following command will speed up it. `make -f exts.mk -j8 clean all`
* Restart timer thread even after preparation failedNobuyoshi Nakada2020-02-132-2/+18
| | | | | If the timer thread is left stopped, memory crash or segfault can happen. [Bug #16624]
* check ruby_2_7 branchNARUSE, Yui2020-01-301-6/+6
|
* Allow rexml to fail on macOS of Github ActionsNobuyoshi Nakada2020-01-301-2/+2
| | | | | And revert "Stop test-bundled-gems on macOS for now", 28b290f7f4cb332dab3ddf3132e1916d413ea65c.
* Stop test-bundled-gems on macOS for nowNobuyoshi Nakada2020-01-301-1/+1
|
* .github/workflows/cygwin.yml: RemovedYusuke Endoh2020-01-301-93/+0
| | | | | | There is no active maintainer for cygwin. The CI failure is too noisy. [Misc #16407]