summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-02-07Use write barriers for Backtrace objectsJohn Hawthorn
Backtrace objects hold references to: * iseqs - via the captured locations * strary - a lazily allocated array of strings * locary - a lazily allocated array of backtrace locations Co-authored-by: Adam Hess <[email protected]> Notes: Merged: https://github.com/ruby/ruby/pull/7253
2023-02-07Fix typo in gc.h [ci skip]Peter Zhu
2023-02-07[ruby/net-http] Enhanced RDoc for Net::HTTPBurdetteLamar
https://github.com/ruby/net-http/commit/e65a3d9f11
2023-02-07[ruby/net-http] [DOC] Reorganize doc for proxy serverBurdette Lamar
(https://github.com/ruby/net-http/pull/117) https://github.com/ruby/net-http/commit/f8b6b76cba
2023-02-07Revert "Consider DATA objects without a mark function as protected"Jean Boussier
This reverts commit 6e4c242130965de1cf00703c99f8821b0bd19e5b. Notes: Merged: https://github.com/ruby/ruby/pull/7262
2023-02-07Use rb_gc_mark_and_move for method objectsPeter Zhu
Notes: Merged: https://github.com/ruby/ruby/pull/7245
2023-02-07Use rb_gc_mark_and_move for proc and bindingPeter Zhu
Also makes VM_ENV_ENVVAL movable. Notes: Merged: https://github.com/ruby/ruby/pull/7245
2023-02-07[ruby/reline] Add comment for unused constantsima1zumi
FILENAME_COMPLETION_PROC and USERNAME_COMPLETION_PROC are not used by Reline. However, they were added for compatibility with the rb-readline gem. These constants have been retained and comments added. https://github.com/ruby/reline/commit/98fdbd3f18
2023-02-07Mentioned gmp at requirementsHiroshi SHIBATA
2023-02-07Update default gems list at a66bc448a40929207fcf6e97107d71 [ci skip]git
2023-02-07[ruby/psych] Bump version to 5.1 for releaseCharles Oliver Nutter
This version primarily updates the JRuby extension to use SnakeYAML Engine, a newer version of the SnakeYAML library, which also updates YAML support to 1.2. The JRuby extension now also exposes settings for the parser. https://github.com/ruby/psych/commit/6f2b16b343
2023-02-07Mark Encoding as Write Barrier protectedJean Boussier
It doesn't even have a mark function. It's only about a hundred objects, but not reason to scan them every time. Notes: Merged: https://github.com/ruby/ruby/pull/7254
2023-02-07Consider DATA objects without a mark function as protectedJean Boussier
It's not uncommon for simple binding to wrap structs without any Ruby object references. Hence with no `mark` function. Might as well mark them as protected by a write barrier. Notes: Merged: https://github.com/ruby/ruby/pull/7255
2023-02-07Document default gems and bundled gems specificationsHiroshi SHIBATA
2023-02-07Added tarball instruction to building_ruby.mdHiroshi SHIBATA
2023-02-06[rubygems/rubygems] Bump rb-sysdependabot[bot]
Bumps [rb-sys](https://github.com/oxidize-rb/rb-sys) from 0.9.58 to 0.9.61. - [Release notes](https://github.com/oxidize-rb/rb-sys/releases) - [Commits](https://github.com/oxidize-rb/rb-sys/compare/v0.9.58...v0.9.61) --- updated-dependencies: - dependency-name: rb-sys dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
2023-02-06[ruby/rdoc] Remove duplicate word in RDoc::MarkupReferencecjilbert504
The word "for" appeared twice in the same sentence in the margins section, and this PR removes the duplicate occurrence.
2023-02-06[ruby/rdoc] Add test coverage for -C flagzzak
https://github.com/ruby/rdoc/commit/564be08f4b
2023-02-06[ruby/rdoc] Actually execute RDoc document task for coveragezzak
https://github.com/ruby/rdoc/commit/7e70d41585
2023-02-06Revert "Only emit circular dependency warning for owned thread shields"Jean byroot Boussier
This reverts commit fa49651e05a06512e18ccb2f54a7198c9ff579de. Notes: Merged: https://github.com/ruby/ruby/pull/7256
2023-02-06YJIT: Support arg0 splat on invokeblock (#7234)Takashi Kokubun
Notes: Merged-By: maximecb <[email protected]>
2023-02-06Add .DELETE_ON_ERROR to MakefileAlan Wu
This instructs make to delete target files if the recipe fails midway, like when make itself is interrupted. This is mostly for development since it protects against corrupt builds that need a `make clean` to repair. Release builds normally don't fail mid-recipe. GNU make and BSD make support this. From GNU make's manual: > This is almost always what you want make to do, but it is not historical > practice; so for compatibility, you must explicitly request it. See https://innolitics.com/articles/make-delete-on-error/ Notes: Merged: https://github.com/ruby/ruby/pull/5745 Merged-By: XrXr
2023-02-06Only emit circular dependency warning for owned thread shieldsJean Boussier
[Bug #19415] If multiple threads attemps to load the same file concurrently it's not a circular dependency issue. So we check that the existing ThreadShield is owner by the current fiber before warning about circular dependencies. Notes: Merged: https://github.com/ruby/ruby/pull/7252
2023-02-06Limit maximum number of IVs on a shape on T_OBJECTSJemma Issroff
Create SHAPE_MAX_NUM_IVS (currently 50) and limit all shapes of T_OBJECTS to that number of IVs. When a shape with a T_OBJECT has more than 50 IVs, fall back to the obj_too_complex shape which uses hash lookup for ivs. Note that a previous version of this commit 78fcc9847a9db6d42c8c263154ec05903a370b6b was reverted in 88f2b94065be3fcd6769a3f132cfee8ecfb663b8 because it did not account for non-T_OBJECTS Notes: Merged: https://github.com/ruby/ruby/pull/7188
2023-02-06[rubygems/rubygems] Properly exclude gemspec file itself from gemAkira Matsuda
by comparing the file names with full path. Follows up https://github.com/rubygems/rubygems/commit/f444478eaccf https://github.com/rubygems/rubygems/commit/9637a82d2e
2023-02-06[rubygems/rubygems] Properly load the generated gemspecAkira Matsuda
The previous code loads bundler's gemspec which does not include the generated gemspec file, and thus the test was passing where it should indeed fail. With this change, the test properly fails now. https://github.com/rubygems/rubygems/commit/2098ea0d75
2023-02-06YJIT: Check interrupts on frame pop (#7248)Takashi Kokubun
YJIT: Skip gen_check_ints on ISEQ send On the interpreter, vm_push_frame doesn't check interrupts. Only vm_pop_frame does. Notes: Merged-By: maximecb <[email protected]>
2023-02-06[ruby/reline] Fix line rendering when newline is added at the end of the buffertompng
https://github.com/ruby/reline/commit/7d61b3df9a
2023-02-06Fixup 3dcc2b63160588ba313a120823e0723c89f9a09fHiroshi SHIBATA
2023-02-06Separate download section for using GitHiroshi SHIBATA
2023-02-06Mentioned cache.r-l.oHiroshi SHIBATA
2023-02-06[ruby/English] Replace HTML5 deprecated tag <tt> with <code>ccmywish
https://github.com/ruby/English/commit/3712fd6752
2023-02-05[ruby/reline] test_dumb_terminal: "ruby" command is not always availableSorah Fukumori
Fixes the same issue at https://github.com/ruby/ruby/pull/5417 `ruby` is not always available in certain build environments and configure options (e.g. --program-suffix) This patch tries to choose an appropriate command line for spawning a fresh Ruby process, based on EnvUtil implementation in ruby/ruby's test suite. Plus when this library is directly mirrored into ruby/ruby, prefer EnvUtil available there over the implementation in this library's test suite. https://github.com/ruby/reline/commit/278327d2e9
2023-02-05[ruby/rdoc] [DOC] Fix reference to proper list type RDoc::MarkupReferencecjilbert504
The "Lettered List" section referred to the previous "Numbered List" section, so this PR fixes that reference to point instead of lettered lists.
2023-02-05[rubygems/rubygems] Replace "prior to" with "immediately after"Sam Bostock
Currently, the instructions and placeholder contradict each other. The commit that introduced this placeholder (42bc4715d920e836c8499883d) makes it clear that the placeholder should be replaced AFTER publishing (i.e. once the author successfully claims the gem name on Rubygems), so the placeholder should match. https://github.com/rubygems/rubygems/commit/23e2dea828
2023-02-04[ruby/irb] Add tests for workspaces commandsStan Lo
(https://github.com/ruby/irb/pull/512) https://github.com/ruby/irb/commit/874dbcad81
2023-02-04Remove unneeded repetitionsTakashi Kokubun
2023-02-04[rubygems/rubygems] Ensure that `TempIO` is closedNobuyoshi Nakada
https://github.com/rubygems/rubygems/commit/0cbb7b5370
2023-02-04[rubygems/rubygems] Fix Tempfile leaksNobuyoshi Nakada
https://github.com/rubygems/rubygems/commit/f95d1a87ce
2023-02-04* remove trailing spaces. [ci skip]git
2023-02-04[ruby/net-http] [DOC] Enhanced RDoc for Net::HTTPBurdette Lamar
(https://github.com/ruby/net-http/pull/116) https://github.com/ruby/net-http/commit/22c0d34002
2023-02-03[ruby/rdoc] Add newline before returnzzak
https://github.com/ruby/rdoc/commit/6d609cb64c Co-authored-by: Olle Jonsson <[email protected]>
2023-02-03[ruby/rdoc] Add rdoc:coverage default taskzzak
https://github.com/ruby/rdoc/commit/157fbaf575
2023-02-03Mark "method" objects as protected by write barrierJean Boussier
All its reference are set with RB_OBJ_WRITE, so they can be marked as WB protected. Notes: Merged: https://github.com/ruby/ruby/pull/7237
2023-02-03Avoid using OBJ_WB_UNPROTECTJean Boussier
Not that it makes a big difference here, but it's just unecessary. Notes: Merged: https://github.com/ruby/ruby/pull/7241
2023-02-03[DOC] Fix call-seq of Struct.new (#7246)Kouhei Yanagita
Notes: Merged-By: k0kubun <[email protected]>
2023-02-03Remove dead code in ar_copyPeter Zhu
All of the callers of ar_copy guarantee that hash2 has an ar table, so we don't need the logic to handle the case when hash2 doesn't have an ar table. Notes: Merged: https://github.com/ruby/ruby/pull/7230
2023-02-03YJIT: Make Block::start_addr non-optionalAlan Wu
We set the block address as soon as we make the block, so there is no point in making it `Option<CodePtr>`. No memory saving, unfortunately, as `mem::size_of::<Block>() = 176` before and after this change. Still a simplification for the logic, though. Notes: Merged: https://github.com/ruby/ruby/pull/7243
2023-02-03Put example VSCode configs in misc/.vscode [ci skip]Takashi Kokubun
They are needed very often but it's hard to remember. I thought it'd be useful to just copy that to /.vscode and edit that. Usage: cp -r misc/.vscode .vscode Don't symlink it because you'd edit it but not want to commit it.
2023-02-03CI: Pass -O2 for annocheckAlan Wu
Because `optflags` is pasted into the invocation line after `CC`, we were building with -O1 unintentionally. You can see this in the configuration summary: https://github.com/ruby/ruby/actions/runs/3933391169/jobs/6727044423#step:9:753 The check actually fails with -O2. To make it pass, upstream suggest that we use the annocheck GCC plugin. Since it requires building from source as the debian package for it isn't ready yet, punt on it for now and use `--skip-gaps`. Co-authored-by: Jun Aruga <[email protected]> Notes: Merged: https://github.com/ruby/ruby/pull/7132