summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-08-29[ruby/irb] Rescue NotFoundError of RDoc::RI::Driver#expand_nameaycabta
https://github.com/ruby/irb/commit/c5f13b23d7
2021-08-29[ruby/irb] Add show doc dialog for Relineaycabta
https://github.com/ruby/irb/commit/026700499d
2021-08-29Free previously used tables [Bug #18134]Nobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/4788
2021-08-29Handle non-succeeding reports mingled with dotsNobuyoshi Nakada
2021-08-29Memory::Status#_update should return `self`Nobuyoshi Nakada
2021-08-29Make ruby.pc from makeNobuyoshi Nakada
Expand variables undefined in configure.ac, RUBY_RELEASE_DATE and so on.
2021-08-29Move DEFFILE to EXTDLDFLAGSNobuyoshi Nakada
So that it is no longer needed in ruby.pc.in.
2021-08-29Reorder ruby.pc variablesNobuyoshi Nakada
Moved variables obviously independent from others first.
2021-08-29Update power_assert to 2.0.1Kazuki Tsujimoto
2021-08-29Add negative position tests [Bug #18138]Nobuyoshi Nakada
2021-08-29Add out of range tests for Array#slice!Nobuyoshi Nakada
2021-08-29* 2021-08-29 [ci skip]git
2021-08-29Fix length calculation for Array#slice!Mike Dalessio
Commit 4f24255 introduced a bug which allows a length to be passed to rb_ary_new4 which is too large, resulting in invalid memory access. For example: (1..1000).to_a.slice!(-2, 1000) Notes: Merged: https://github.com/ruby/ruby/pull/4787
2021-08-28Add Windows as a supported OS for Process.clock_gettime [ci skip]Lars Kanis
Notes: Merged: https://github.com/ruby/ruby/pull/4782
2021-08-28* 2021-08-28 [ci skip]git
2021-08-28[Windows CI] Stop VS-2022Nobuyoshi Nakada
We have previewed it, and know it doesn't work well now.
2021-08-28[Windows CI] Stop on error in VS-2022Nobuyoshi Nakada
2021-08-28[Windows CI] Setup envNobuyoshi Nakada
2021-08-27Fix memory leak in Variable Width AllocationPeter Zhu
Force recycled objects could create a freelist for the page. At the start of sweeping we should append to the freelist to avoid permanently losing the slots on the freelist. Notes: Merged: https://github.com/ruby/ruby/pull/4786
2021-08-27Update the list of replacing objects under missingNobuyoshi Nakada
2021-08-27Use C99-defined signbit macroNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/4783
2021-08-27Use C99-defined macros to classify a floating-point numberNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/4783
2021-08-27[Windows CI] Set PATCH pathNobuyoshi Nakada
2021-08-27[Windows CI] Make test-all parallel and verboseNobuyoshi Nakada
2021-08-27[Windows CI] Group nmake stepNobuyoshi Nakada
2021-08-27[Windows CI] Moved parameters to includeNobuyoshi Nakada
2021-08-27* 2021-08-27 [ci skip]git
2021-08-27[DOC] Fix a typo in Dir.fnmatchHenrik Nyh
Notes: Merged: https://github.com/ruby/ruby/pull/4781
2021-08-26Use patch installed by msys2/setup-msys2Kazuhiro NISHIYAMA
Notes: Merged: https://github.com/ruby/ruby/pull/4775
2021-08-26Use bundled libffi on windows-2022Kazuhiro NISHIYAMA
Notes: Merged: https://github.com/ruby/ruby/pull/4775
2021-08-26Install patchKazuhiro NISHIYAMA
Because patch does not installed on windows-2022. https://github.com/actions/virtual-environments/issues/3949 > Only pure MSYS2 is installed. No additional packages Notes: Merged: https://github.com/ruby/ruby/pull/4775
2021-08-26Ignore errors on windows-2022Kazuhiro NISHIYAMA
https://github.com/ruby/ruby/pull/4775/checks?check_run_id=3419490832#step:13:38
2021-08-26Use newer libffi on windows-2022Kazuhiro NISHIYAMA
Notes: Merged: https://github.com/ruby/ruby/pull/4775
2021-08-26Set VCVARSKazuhiro NISHIYAMA
Notes: Merged: https://github.com/ruby/ruby/pull/4775
2021-08-26Add Windows Server 2022 with Visual Studio 2022Kazuhiro NISHIYAMA
https://github.blog/changelog/2021-08-23-github-actions-windows-server-2022-with-visual-studio-2022-is-now-available-on-github-hosted-runners-public-beta/ Notes: Merged: https://github.com/ruby/ruby/pull/4775
2021-08-26Fix example fiber scheduler reg. writable eventsLars Kanis
There were two issues: 1. When an IO object is waiting for writablility only (as in test_tcp_accept) the selected hash is empty. Therefore selected[fiber] returns nil but needs to default to 0 in order to be or'ed with IO::WRITABLE. 2. When an IO object is waiting for read- or writability (as in test_tcp_connect), but only one of these two events arrive, the Fiber and IO object need to be removed from the other `@readable` or `@writable` list. Notes: Merged: https://github.com/ruby/ruby/pull/4777
2021-08-26Make Hash#each family usable in RactorSutou Kouhei
We don't need to increment/decrement iteration level for frozen Hash because frozen Hash can't be modified. We can assume that nobody changes the target Hash while calling #each family. How to reproduce: a = {} 100.times do |i| a[i] = true end Ractor.make_shareable(a) 4.times.collect do Ractor.new(a) do |b| 100.times do b.each_value do end end end end.each(&:take) Example output: internal:ractor>:267: warning: Ractor is experimental, and the behavior may change in future versions of Ruby! Also there are many implementation issues. #<Thread:0x00007fcfb087bb30 run> terminated with exception (report_on_exception is true): #<Thread:0x00007fcfb087b8d8 run> terminated with exception (report_on_exception is true): #<Thread:0x00007fcfb088d678 run> terminated with exception (report_on_exception is true): #<Thread:0x00007fcfb087bd88 run> terminated with exception (report_on_exception is true): /tmp/h.rb:10:in `each_value'/tmp/h.rb:10:in `each_value': : /tmp/h.rb:10:in `each_value'no implicit conversion from nil to integer/tmp/h.rb:10:in `each_value'no implicit conversion from nil to integer (: : (TypeErrorTypeError)no implicit conversion from nil to integer)no implicit conversion from nil to integer ( (TypeErrorTypeError from /tmp/h.rb:10:in `block (3 levels) in <main>' from /tmp/h.rb:10:in `block (3 levels) in <main>' )) from /tmp/h.rb:9:in `times' from /tmp/h.rb:9:in `times' from /tmp/h.rb:9:in `block (2 levels) in <main>' from /tmp/h.rb:10:in `block (3 levels) in <main>' from /tmp/h.rb:10:in `block (3 levels) in <main>' from /tmp/h.rb:9:in `block (2 levels) in <main>' from /tmp/h.rb:9:in `times' from /tmp/h.rb:9:in `times' from /tmp/h.rb:9:in `block (2 levels) in <main>' from /tmp/h.rb:9:in `block (2 levels) in <main>' <internal:ractor>:694:in `take': thrown by remote Ractor. (Ractor::RemoteError) from /tmp/h.rb:14:in `each' from /tmp/h.rb:14:in `<main>' /tmp/h.rb:10:in `each_value': no implicit conversion from nil to integer (TypeError) from /tmp/h.rb:10:in `block (3 levels) in <main>' from /tmp/h.rb:9:in `times' from /tmp/h.rb:9:in `block (2 levels) in <main>' Notes: Merged: https://github.com/ruby/ruby/pull/4768
2021-08-26* 2021-08-26 [ci skip]git
2021-08-25Clean up lambda output from exyacc.rbKevin Newton
The `lambda_body` grammar rule has a `"}"`, which is throwing off the `exyacc.rb` regular expressions. This changes the regular expression to account for `"}"` as well, which makes the output of `ruby sample/exyacc.rb < parse.y` change by the following diff: ```diff 632,634d631 < ", &@3); < $$ = $2; < } ``` Which makes it closer to a valid EBNF. Notes: Merged: https://github.com/ruby/ruby/pull/4778
2021-08-25[Feature #18045] Implement size classes for GCPeter Zhu
This commits implements size classes in the GC for the Variable Width Allocation feature. Unless `USE_RVARGC` compile flag is set, only a single size class is created, maintaining current behaviour. See the redmine ticket for more details. Co-authored-by: Aaron Patterson <tenderlove@ruby-lang.org> Notes: Merged: https://github.com/ruby/ruby/pull/4773
2021-08-25[Feature #18045] Remove T_PAYLOADPeter Zhu
This commit removes T_PAYLOAD since the new VWA implementation no longer requires T_PAYLOAD types. Co-authored-by: Aaron Patterson <tenderlove@ruby-lang.org> Notes: Merged: https://github.com/ruby/ruby/pull/4773
2021-08-25Use `empty` instead of NOOP in mk file to make it safer Yuta Saito
This would avoid unintentional use of the `NOOP` environment variable Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org> Notes: Merged: https://github.com/ruby/ruby/pull/4776
2021-08-25Fix build failure on macOS with --enable-sharedYuta Saito
./spec/ruby/optional/capi/ext/array_spec.c can match with spec/%/ if using GNU Make under version 3.81. make command installed on macOS is 3.81, so ruby can't be built with default make on macOS with --enable-shared option since https://github.com/ruby/ruby/commit/bda56a03a625793cb3fd110458c3f7323d73705e Notes: Merged: https://github.com/ruby/ruby/pull/4776
2021-08-25Add missing empty macro [ci skip]Nobuyoshi Nakada
2021-08-25Added bundle install before bundle exec on rdoc syncHiroshi SHIBATA
2021-08-25tool/test-bundled-gems.rb: Use the bundled RBS code to test TypeProfYusuke Endoh
Formerly, TypeProf was tested with the latest RBS code during `make test-bundled-gems`. However, when a new version of rbs is released, and if it is incompatible with TypeProf, `make test-bundled-gems` starts failing, which was annoying. By this change, TypeProf is tested with the bundled version of RBS. Notes: Merged: https://github.com/ruby/ruby/pull/4774
2021-08-25* 2021-08-25 [ci skip]git
2021-08-24Fix warnings in test_optimization.rbJeremy Evans
These were introduced in the test for tracing optimized methods added in 48c8df9e0eb295af06d593ce37ce1933c0ee1d90.
2021-08-24[Bug #18117] Fix Ractor race condition with GCPeter Zhu
rb_objspace_reachable_objects_from requires that the GC not be active. Since the Ractor barrier is not executed for incremental sweeping, Ractor may call rb_objspace_reachable_objects_from after sweeping has started to share objects. This causes a crash that looks like the following: ``` <internal:ractor>:627: [BUG] rb_objspace_reachable_objects_from() is not supported while during_gc == true ``` Co-authored-by: Vinicius Stock <vinicius.stock@shopify.com> Notes: Merged: https://github.com/ruby/ruby/pull/4755
2021-08-24[ruby/securerandom] [DOC] fix a code mark up [ci skip]Nobuyoshi Nakada
https://github.com/ruby/securerandom/commit/de47532707