summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-04-03[DOC] Describe append_{c,cpp,ld}flagsv3_2_0_preview1Nobuyoshi Nakada
2022-04-03[ruby/net-http] Revert "Update the content-length heading when decoding bodies"Jeremy Evans
This reverts commit https://github.com/ruby/net-http/commit/a7cb30124cf1. This is causing errors in Ruby's CI, will revert for now and try again after testing a fix with Ruby's CI. https://github.com/ruby/net-http/commit/7b852b1feb
2022-04-02[DOC] Enhanced RDoc for String (#5751)Burdette Lamar
Adds to doc for String.new, also making it compliant with documentation_guide.rdoc. Fixes some broken links in io.c (that I failed to correct yesterday). Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2022-04-03* 2022-04-03 [ci skip]git
2022-04-03dir.c: refresh pathtype when emulating `IFTODT` in `glob_helper`Yuta Saito
When using `IFTODT` defined in libc, `dirent.d_type` oriented pathtype is compatible with `IFTODT(stat.st_mode)`. However they are not compatible when emulating `IFTODT`, so `glob_helper` has to stat instead of reusing dirent result by passing unknown pathtype to `glob_helper`. This is a follow-up fix of 0c90ca4dd0abbd28d7bb34b9241d93995ab9cfb7 Notes: Merged: https://github.com/ruby/ruby/pull/5680
2022-04-02[ruby/zlib] Use `z_size_t` version functionsNobuyoshi Nakada
https://github.com/ruby/zlib/commit/1ce6625fff
2022-04-02Update bundled gems list at e73d76027e7a7e0927785c66629c18 [ci skip]git
2022-04-02Update bundled_gemsKazuhiro NISHIYAMA
2022-04-02[ruby/zlib] Mask checksums to lower 32bits on also IL32 platformsNobuyoshi Nakada
https://github.com/ruby/zlib/commit/e1ead85113
2022-04-02[ruby/zlib] Mask checksums to lower 32bitsNobuyoshi Nakada
Upper bits affect the result of `crc32` in zlib 1.2.12. https://github.com/ruby/zlib/commit/9ab6d04af1
2022-04-02[DOC] Fix broken links to encodings.rdocNobuyoshi Nakada
Also prefers class name based references than file name based references.
2022-04-02Adjust indent [ci skip]Nobuyoshi Nakada
2022-04-01[DOC] Main doc for encodings moved from encoding.c to doc/encodings.rdoc (#5748)Burdette Lamar
Main doc for encodings moved from encoding.c to doc/encodings.rdoc Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2022-04-01Finer-grained constant cache invalidation (take 2)Kevin Newton
This commit reintroduces finer-grained constant cache invalidation. After 8008fb7 got merged, it was causing issues on token-threaded builds (such as on Windows). The issue was that when you're iterating through instruction sequences and using the translator functions to get back the instruction structs, you're either using `rb_vm_insn_null_translator` or `rb_vm_insn_addr2insn2` depending if it's a direct-threading build. `rb_vm_insn_addr2insn2` does some normalization to always return to you the non-trace version of whatever instruction you're looking at. `rb_vm_insn_null_translator` does not do that normalization. This means that when you're looping through the instructions if you're trying to do an opcode comparison, it can change depending on the type of threading that you're using. This can be very confusing. So, this commit creates a new translator function `rb_vm_insn_normalizing_translator` to always return the non-trace version so that opcode comparisons don't have to worry about different configurations. [Feature #18589] Notes: Merged: https://github.com/ruby/ruby/pull/5716
2022-04-01Fix up global name references in misc/lldb_disasm.pyAaron Patterson
Some of the symbols had changed names and the script was no longer finding them. Notes: Merged: https://github.com/ruby/ruby/pull/5716
2022-04-02* 2022-04-02 [ci skip]git
2022-04-02[ruby/net-http] Update the content-length heading when decoding bodiesJeremy Evans
Previously, the content-encoding header was removed and the body was modified, but the content-length header was not modified, resulting in the content-length header not matching the body length. Fixes [Bug #16672] https://github.com/ruby/net-http/commit/a7cb30124c
2022-04-01extract magic number from gc_sweep_stepMatt Valentine-House
Notes: Merged: https://github.com/ruby/ruby/pull/5746
2022-04-01Use mmap for heap page allocation onlyPeter Zhu
Currently, rb_aligned_malloc uses mmap if Ruby heap pages can be allocated through mmap (when system heap page size <= Ruby heap page size). If Ruby heap page sizes is increased to 64KiB, then mmap will be used on systems with 64KiB system page sizes. However, the transient heap also uses rb_aligned_malloc and requires 32KiB alignment. This would break in the current implementation since it would allocate sizes through mmap that is not a multiple of the system page size. This commit adds heap_page_body_allocate which will use mmap when possible and changes rb_aligned_malloc to not use mmap (and only use posix_memalign).
2022-04-01Revert "Raise RuntimeError if Kernel#binding is called from a non-Ruby frame"Jeremy Evans
This reverts commit 343ea9967e4a6b279eed6bd8e81ad0bdc747f254. This causes an assertion failure with -DRUBY_DEBUG=1 -DRGENGC_CHECK_MODE=2
2022-04-01[Feature #18619] remove FL_FROM_FREELISTMatt Valentine-House
Notes: Merged: https://github.com/ruby/ruby/pull/5637
2022-04-01[Feature #18619] Remove redundant compaction pathMatt Valentine-House
Notes: Merged: https://github.com/ruby/ruby/pull/5637
2022-04-01[Feature #18619] Reverse the order of compaction movementMatt Valentine-House
This commit changes the way compaction moves objects and sweeps pages in order to better facilitate object movement between size pools. Previously we would move the scan cursor first until we found an empty slot and then we'd decrement the compact cursor until we found something to move into that slot. We would sweep the page that contained the scan cursor before trying to fill it In this algorithm we first move the compact cursor down until we find an object to move - We then take a free page from the desired destination heap (always the same heap in this current iteration of the code). If there is no free page we sweep the page at the sweeping_page cursor, add it to the free pages, and advance the cursor to the next page, and try again. We sweep one page from each size pool in this way, and then repeat that process until all the size pools are compacted (all the cursors have met), and then we update references and sweep the rest of the heap. Notes: Merged: https://github.com/ruby/ruby/pull/5637
2022-04-01Update bundled gems list at b3a05827c716bbb6a54cb6924f5840 [ci skip]git
2022-04-01debug.gem v1.5.0Koichi Sasada
Note that `mkmf`'s `have_func` doesn't work without installing ruby (without `make install`) and `make test-bundled-gems` does not work. So the newer test repository is specified. Notes: Merged: https://github.com/ruby/ruby/pull/5738
2022-04-01Update default gems list at 06f94d1784c6f00ba7d21af57af0d0 [ci skip]git
2022-04-01[ruby/net-protocol] Bump version to 0.1.3Hiroshi SHIBATA
https://github.com/ruby/net-protocol/commit/9cf40af499
2022-04-01[ruby/psych] Output libyaml configure logNobuyoshi Nakada
https://github.com/ruby/psych/commit/c2e3c8579c
2022-03-31Remove dependency on libcapstoneAlan Wu
We have received reports of build failures due to this configuration check modifying compile flags. Since only YJIT devs use this library we can remove it to make Ruby easier to build for users. See: https://github.com/rbenv/ruby-build/discussions/1933 Notes: Merged: https://github.com/ruby/ruby/pull/5744 Merged-By: XrXr
2022-03-31[DOC] Enhanced RDoc for String (#5742)Burdette Lamar
Treats: #force_encoding #b #valid_encoding? #ascii_only? #scrub #scrub! #unicode_normalized? Plus a couple of minor tweaks. Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2022-03-31Remove hard-coded swept slots thresholdMatt Valentine-House
Notes: Merged: https://github.com/ruby/ruby/pull/5720
2022-03-31Update default gems list at 8a38419b73ec2b698dd2d0462055f3 [ci skip]git
2022-04-01[ruby/ostruct] v0.5.5Marc-André Lafortune
https://github.com/ruby/ostruct/commit/ce879e56cf
2022-04-01* 2022-04-01 [ci skip]git
2022-04-01[ruby/ostruct] Avoid using block_given in the presence of aliasesCharles Oliver Nutter
defined?(yield) bypasses the block_given? method (or any aliases to it) and always does the right thing. https://github.com/ruby/ostruct/commit/4c38fe612e
2022-03-31[ruby/psych] Make a static library from PIC object filesNobuyoshi Nakada
On some platforms, PIC and non-PIC code are incompatible and the latter cannot be used for shared objects. https://github.com/ruby/psych/commit/5652e32733
2022-03-31[rubygems/rubygems] Update bundler documentation to reflect bundle config ↵James Hill
scope changes In https://github.com/rubygems/rubygems/pull/4152 `bundle config` was changed to default to local scope (instead of global) if the command was executed from inside an application directory. Updated documentation reflects this change. https://github.com/rubygems/rubygems/commit/d92d42cae5
2022-03-31Return only captured range in `MatchData` [Bug #18670]Nobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/5740 Merged-By: nobu <nobu@ruby-lang.org>
2022-03-31test/date/test_date_parse.rb: relax the time limitYusuke Endoh
The timeout was very strict for weak CI machines like qemu-riscv. Due to the additional overhead for Regexp.timeout=, it started failing on such machines. http://rubyci.s3.amazonaws.com/debian-riscv64/ruby-master/log/20220330T200018Z.fail.html.gz ``` 1) Error: TestDateParse#test__parse_too_long_year: Timeout::Error: execution expired ```
2022-03-31[ruby/psych] Remove `unknown` vendor for cross-compiling tool prefixNobuyoshi Nakada
https://github.com/ruby/psych/commit/a4ffa06646
2022-03-31Remove CI configuration files from extracted bundled gemsNobuyoshi Nakada
2022-03-31Remove github and git related files from extracted bundled gemsNobuyoshi Nakada
2022-03-31re.c: stop a wrong warning of "flags ignored" on Regexp.new(//)Yusuke Endoh
[Bug #18669]
2022-03-31[DOC] Fix ghcr linkS-H-GAMELINKS
Notes: Merged: https://github.com/ruby/ruby/pull/5734
2022-03-30[Bug #18667] Define RUBY_API_VERSION on WindowsPeter Zhu
On other platforms, RUBY_SO_NAME is defined from RUBY_API_VERSION. ruby_version contains the ABI version, which is not needed. RUBY_API_VERSION is defined as MAJOR.MINOR. Notes: Merged: https://github.com/ruby/ruby/pull/5736
2022-03-30Repair format for What's Here in Dir (#5737)Burdette Lamar
Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2022-03-30Repaired What's Here sections for Range, String, Symbol, Struct (#5735)Burdette Lamar
Repaired What's Here sections for Range, String, Symbol, Struct. Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2022-03-30Update NEWS for proc autosplat changeJeremy Evans
2022-03-31* 2022-03-31 [ci skip]git
2022-03-30Do not autosplat array in block call just because keywords acceptedJeremy Evans
If the block only accepts a single positional argument plus keywords, then do not autosplat. Still autosplat if the block accepts more than one positional argument in addition to keywords. Autosplatting a single positional argument plus keywords made sense in Ruby 2, since a final positional hash could be used as keywords, but it does not make sense in Ruby 3. Fixes [Bug #18633] Notes: Merged: https://github.com/ruby/ruby/pull/5665 Merged-By: jeremyevans <code@jeremyevans.net>