summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-02-17Do not search for commands with double tool prefixes [Bug #18504]Nobuyoshi Nakada
The `CC` found by `AC_CHECK_TOOL` is prefixed by the host triplet when cross compiling. To search for commands with `AC_CHECK_TOOL` based on that `CC` means to search also doubly prefixed names. Notes: Merged: https://github.com/ruby/ruby/pull/5565
2022-02-17Refine the load error messageNobuyoshi Nakada
Show the linked ruby library name when failed to load extension built against different ruby library. Notes: Merged: https://github.com/ruby/ruby/pull/5564
2022-02-17Check running macOS version at runtimeNobuyoshi Nakada
2022-02-17Reuse `-v` option result as `target_platform`Nobuyoshi Nakada
Backticks method invokes `/bin/sh` when the command contains quotes, and `sh` clears some environment variables set in runruby.rb to search the built shared library.
2022-02-17exclude name must be Regexp or SymbolKazuhiro NISHIYAMA
https://github.com/ruby/ruby/blob/fdf0f8d81487560f5837dc7e3888a96f7c2b4ec9/tool/lib/test/unit.rb#L1273-L1290
2022-02-17btest-ruby OPTS=-v should disable quietKoichi Sasada
`make btest-ruby` is run with -q (quiet) option and -v should remove -q option.
2022-02-17Hide patchlevel from release buildHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/5496
2022-02-17yjit_codegen.c: Prevent a possible out-of-bound accessYusuke Endoh
The code attempts to read `C_ARG_REGS[leaf_builtin->argc + 1]`, and the size of `C_ARG_REGS` is `NUM_C_ARG_REGS`. So, the guard condition must be `leaf_builtin->argc + 1 + 1 <= NUM_C_ARG_REGS`. This change fixes the off-by-one error. This issue was found by Coverity Scan. Notes: Merged: https://github.com/ruby/ruby/pull/5561
2022-02-17* 2022-02-17 [ci skip]git
2022-02-16Fix -Wsign-compare when -DRUBY_DEBUG=1Alan Wu
Sizes for darray are size_t now. CC @peterzhu2118
2022-02-16Change feature_index from fake Array to darrayPeter Zhu
Using a fake (malloc) RArray is not friendly for the garbage collector. Fake RArray does not have a heap page, so it causes Variable Width Allocation to crash when we try to implement it on Arrays. This commit changes feature_index from a RArray to a darray. Notes: Merged: https://github.com/ruby/ruby/pull/5546
2022-02-16Change darray size to size_t and add functions that use GC mallocPeter Zhu
Changes size and capacity of darray to size_t to support more elements. Adds functions to darray that use GC allocation functions. Notes: Merged: https://github.com/ruby/ruby/pull/5546
2022-02-16Parenthesize a macro expressionNobuyoshi Nakada
The modulo in `rb_yjit_code_page_alloc` seems interpreted wrongly. Notes: Merged: https://github.com/ruby/ruby/pull/5560
2022-02-16fix parallel test timeout retryingKoichi Sasada
On the parallel test, workers can be killed because of timeout and the information for the retrying can be inconsistent. This patch will skip if the inconsistency is found and report as an error. http://ci.rvm.jp/results/trunk-asserts@phosphorus-docker/3834082 Notes: Merged: https://github.com/ruby/ruby/pull/5559
2022-02-16lib/securerandom.rb: Fix the check of availability of Random.urandomYusuke Endoh
Random.urandom raises a RuntimeError if it is unavailable. [Bug #13885] Notes: Merged: https://github.com/ruby/ruby/pull/5557
2022-02-16* 2022-02-16 [ci skip]git
2022-02-16`wmap#each` should check liveness of keysKoichi Sasada
`ObjectSpace::WeakMap#each*` should check key's liveness. fix [Bug #18586] Notes: Merged: https://github.com/ruby/ruby/pull/5556
2022-02-14Use RARRAY_SHARED_ROOT_FLAG for checking re-enterPeter Zhu
RARRAY_SHARED_ROOT_FLAG is defined as FL_USER5, but we should use RARRAY_SHARED_ROOT_FLAG instead of depending on that they're equal. Notes: Merged: https://github.com/ruby/ruby/pull/5547
2022-02-14fix GC event synchronizationKoichi Sasada
(1) gc_verify_internal_consistency() use barrier locking for consistency while `during_gc == true` at the end of the sweep on `RGENGC_CHECK_MODE >= 2`. (2) `rb_objspace_reachable_objects_from()` is called without VM synchronization and it checks `during_gc != true`. So (1) and (2) causes BUG because of `during_gc == true`. To prevent this error, wait for VM barrier on `during_gc == false` and introduce VM locking on `rb_objspace_reachable_objects_from()`. http://ci.rvm.jp/results/trunk-asserts@phosphorus-docker/3830088 Notes: Merged: https://github.com/ruby/ruby/pull/5552
2022-02-14* 2022-02-14 [ci skip]git
2022-02-14extend timeout for mjitKoichi Sasada
1 seconeds is not enough on an specific (busy) machine w/ mjit. http://ci.rvm.jp/results/trunk-mjit@phosphorus-docker/3830178
2022-02-13[MSWin] Install OpenSSL with vcpkgNobuyoshi Nakada
2022-02-13Exclude TestThread#test_signal_at_join on FreeBSD 13 for now [ci skip]Nobuyoshi Nakada
2022-02-13* 2022-02-13 [ci skip]git
2022-02-13[DOC] Fix a typo in `Integer#chr` exampleKoichi ITO
The current example raises the following error. ```ruby 0..chr # => undefined local variable or method `chr' for main:Object (NameError) ``` This PR updates the example to produce the expected behavior. ```ruby 0.chr # => "\x00" ``` Notes: Merged: https://github.com/ruby/ruby/pull/5550
2022-02-12[MSWin] Remove stale configuration check [ci skip]Nobuyoshi Nakada
PSAPI library has not been used since d66c5768caaee16a0c2c2c641185.
2022-02-12[ruby/rdoc] Load YAML library for each testNobuyoshi Nakada
https://github.com/ruby/rdoc/commit/a93e1bcd68
2022-02-12[ruby/rdoc] Dump plain objects as `RDoc::Options`Nobuyoshi Nakada
So that the generated `.rdoc_options` file is loadable. https://github.com/ruby/rdoc/commit/6cf6e1647b
2022-02-12[ruby/rdoc] Fix a test method nameNobuyoshi Nakada
https://github.com/ruby/rdoc/commit/8166b84cf3
2022-02-12[ruby/rdoc] Update generated filesNobuyoshi Nakada
2022-02-12[ruby/rdoc] Relative loading for easier development ↵Ulysse Buonomo
(https://github.com/ruby/rdoc/pull/821) This patch makes sure we only load relative code. Hence when coding or testing rdoc, we'll be sure to always be using the correct code. Discussion started at https://github.com/ruby/rdoc/pull/817. Signed-off-by: Ulysse Buonomo <buonomo.ulysse@gmail.com> https://github.com/ruby/rdoc/commit/aa41bd48eb Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
2022-02-12[ruby/rdoc] Optimize RawLine by using a regexp instead of negative ↵Yusuke Endoh
look-ahead rule This improves the performance in some cases. `rdoc .../gems/sinatra-2.1.0/README.md` takes 10.5 sec. before this change, and 7.1 sec. after this change. `make rdoc` of ruby/ruby takes 19.3 sec. before this change, 18.1 sec. after this change. https://github.com/ruby/rdoc/commit/7cf8281e3e
2022-02-12[DOC] Remove unnecessary `rdoc-ref:` schemesNobuyoshi Nakada
2022-02-12[DOC] Simplify operator method referencesNobuyoshi Nakada
2022-02-12Reuse operation rule for operation2S-H-GAMELINKS
Notes: Merged: https://github.com/ruby/ruby/pull/5545
2022-02-12Reuse p_kwnorest rule for f_no_kwargS-H-GAMELINKS
Notes: Merged: https://github.com/ruby/ruby/pull/5540
2022-02-12Fix TypoSteven Nunez
Notes: Merged: https://github.com/ruby/ruby/pull/5548
2022-02-12* 2022-02-12 [ci skip]git
2022-02-12test/ruby/test_exception.rb: prevent "assigned but unused variable"Yusuke Endoh
2022-02-11[rubygems/rubygems] Add clarification for bundle-config "with" optionIlia Zenkevich
https://github.com/rubygems/rubygems/commit/666f3cc724
2022-02-11[rubygems/rubygems] Fix corrupted lockfile when using `gemspec` and multiple ↵David Rodríguez
sources https://github.com/rubygems/rubygems/commit/9712262d90
2022-02-11* 2022-02-11 [ci skip]git
2022-02-11[DOC] Add `.rdoc_options` fileNobuyoshi Nakada
Set `--page-dir` option so that direct rdoc call is consistent with `make html`.
2022-02-10Free cached mark stack chunks when freeing objspacePeter Zhu
Cached mark stack chunks should also be freed when freeing objspace. Notes: Merged: https://github.com/ruby/ruby/pull/5536
2022-02-10Update default gems list at f07a2613e3f14ab713bc5ab8854110 [ci skip]git
2022-02-10Support directory layout of ruby/ruby repositoryHiroshi SHIBATA
2022-02-10[ruby/ipaddr] Bump version to 1.2.4Hiroshi SHIBATA
https://github.com/ruby/ipaddr/commit/6edf6ee6c3
2022-02-10[ruby/ipaddr] Fix exception calling `to_range' after `freeze'Espartaco Palma
https://github.com/ruby/ipaddr/commit/77fe1fca0a
2022-02-10[ruby/ipaddr] Ipaddr#native must also coerce `@mask_addr`Jean Boussier
Before it would be left as an IPv6 mask causing `to_range` to fail. ``` >> IPAddr.new("::2").native.to_range /opt/rubies/3.0.3/lib/ruby/3.0.0/ipaddr.rb:479:in `set': invalid address (IPAddr::InvalidAddressError) ``` https://github.com/ruby/ipaddr/commit/af485192f3
2022-02-10[ruby/ipaddr] Expose IPAddr::VERSIONJean Boussier
An almost universal convention for gems is to expose Namespace::VERSION which makes it much easier when debugging etc. https://github.com/ruby/ipaddr/commit/587ae6996e