-*- coding: utf-8 -*-

commit 23a532679b406cb53c0edfc00c91c32a5ccd335a
  Author:     NAKAMURA Usaku <usa@ruby-lang.org>
  AuthorDate: 2023-03-30 21:41:03 +0900
  Commit:     NAKAMURA Usaku <usa@ruby-lang.org>
  CommitDate: 2023-03-30 21:41:03 +0900

    Fix previous commit

commit 4ec0bac2d9bd29541442709e6c2b62dee688c1ac
  Author:     NAKAMURA Usaku <usa@ruby-lang.org>
  AuthorDate: 2023-03-30 20:10:01 +0900
  Commit:     NAKAMURA Usaku <usa@ruby-lang.org>
  CommitDate: 2023-03-30 20:10:01 +0900

    Limit header length

commit b427e3570d16c7b68cfa0e5e05be84ba8e3eac36
  Author:     NAKAMURA Usaku <usa@ruby-lang.org>
  AuthorDate: 2023-03-30 19:59:19 +0900
  Commit:     NAKAMURA Usaku <usa@ruby-lang.org>
  CommitDate: 2023-03-30 19:59:19 +0900

    [Backport #19161] merge part of 96d1acfdf6c6b42f2029f44d5b5920961d6efa92

    Check for TLS usability

    On all platforms using GCC, even other than darwin.

commit 69f0cafa5ef6ef9c86b374531e757e885198b390
  Author:     git <svn-admin@ruby-lang.org>
  AuthorDate: 2023-03-30 19:49:20 +0900
  Commit:     git <svn-admin@ruby-lang.org>
  CommitDate: 2023-03-30 19:49:20 +0900

    * 2023-03-30 [ci skip]

commit 53a7cee6850bd0d5999fcb56471f0a507222f486
  Author:     Hiroshi SHIBATA <hsbt@ruby-lang.org>
  AuthorDate: 2023-03-29 13:29:08 +0900
  Commit:     usa <usa@garbagecollect.jp>
  CommitDate: 2023-03-30 19:49:08 +0900

    Merge Time-0.1.1

commit 2d99ef4f74e13de352ffd867ffe7308f78d7418e
  Author:     Hiroshi SHIBATA <hsbt@ruby-lang.org>
  AuthorDate: 2023-03-29 14:54:14 +0900
  Commit:     GitHub <noreply@github.com>
  CommitDate: 2023-03-29 14:54:14 +0900

    Merge URI-0.10.2 for Ruby 3.0 (#7607)

    * Merge URI-0.10.2

    * Merge URI-0.10.0.2 for bundler

    * Added assert_linear_performance for URI tests

commit 57e7caeac133cc3b42031ee487e4d7a0cd2487f4
  Author:     git <svn-admin@ruby-lang.org>
  AuthorDate: 2023-03-29 10:58:10 +0900
  Commit:     git <svn-admin@ruby-lang.org>
  CommitDate: 2023-03-29 10:58:10 +0900

    * 2023-03-29 [ci skip]

commit 998fe8ace4621b7337fcd88c78eec02588d0bc57
  Author:     Nobuyoshi Nakada <nobu@ruby-lang.org>
  AuthorDate: 2023-03-26 23:10:50 +0900
  Commit:     usa <usa@garbagecollect.jp>
  CommitDate: 2023-03-29 10:57:57 +0900

    Historical timezones of Lisbon in tzdata are unstable

commit 4527440b5242b7e26cce2500177e989853d7fb16
  Author:     Takashi Kokubun <takashikkbn@gmail.com>
  AuthorDate: 2023-03-26 15:23:10 +0900
  Commit:     usa <usa@garbagecollect.jp>
  CommitDate: 2023-03-29 10:57:57 +0900

    Skip test_europe_lisbon on macOS

    until we figure out why it's failing.

commit 78c2e2827ef8a87da801a612b7a9418db703b2d6
  Author:     Hiroshi SHIBATA <hsbt@ruby-lang.org>
  AuthorDate: 2023-02-03 15:55:33 +0900
  Commit:     usa <usa@garbagecollect.jp>
  CommitDate: 2023-03-29 10:57:57 +0900

    Bump up CodeQL v2

commit 408d2dbede5da0063da0cc71007bf897991e6ca1
  Author:     Hiroshi SHIBATA <hsbt@ruby-lang.org>
  AuthorDate: 2023-02-03 15:41:16 +0900
  Commit:     usa <usa@garbagecollect.jp>
  CommitDate: 2023-03-29 10:57:57 +0900

    Skip test-bundler-prallel with macOS. It mixed system bundler path.

      https://github.com/ruby/ruby/actions/runs/4061314416/jobs/7033111867

commit 57703ba1ec421c938181f49e8127c6e4ae83c281
  Author:     Hiroshi SHIBATA <hsbt@ruby-lang.org>
  AuthorDate: 2023-01-06 09:58:25 +0900
  Commit:     usa <usa@garbagecollect.jp>
  CommitDate: 2023-03-29 10:57:57 +0900

    Pin Ubuntu 20.04 because Ruby 3.0 didn't support OpenSSL 3

commit 6ca5d3cfed45a8c42f6dbf8126e509792576cbe1
  Author:     Hiroshi SHIBATA <hsbt@ruby-lang.org>
  AuthorDate: 2023-01-06 09:36:07 +0900
  Commit:     usa <usa@garbagecollect.jp>
  CommitDate: 2023-03-29 10:57:57 +0900

    Ruby 3.0 only supports `--jit-*` options

commit 9cb6b7d14571c93c5ddb4c5fbf18908b6f756b04
  Author:     Takashi Kokubun <takashikkbn@gmail.com>
  AuthorDate: 2022-11-28 06:32:39 +0900
  Commit:     usa <usa@garbagecollect.jp>
  CommitDate: 2023-03-29 10:57:57 +0900

    Disable test-all on MJIT CI for now

    https://github.com/ruby/ruby/actions/runs/3560006749/jobs/5979749144

commit 54d0a2af33c7a43ad3bc7d54da8a68d0d31e1c0a
  Author:     卜部昌平 <shyouhei@ruby-lang.org>
  AuthorDate: 2021-10-22 11:15:10 +0900
  Commit:     usa <usa@garbagecollect.jp>
  CommitDate: 2023-03-29 10:57:57 +0900

    .github: use GNUMAKEFLAGS instead of JOBS

    A bit readable to me.
    See also https://github.com/ruby/ruby/pull/4880

commit fcab8cf702a529301568aa605774ebb470febe97
  Author:     Takashi Kokubun <takashikkbn@gmail.com>
  AuthorDate: 2022-11-28 06:12:29 +0900
  Commit:     usa <usa@garbagecollect.jp>
  CommitDate: 2023-03-29 10:57:57 +0900

    Test only --mjit-wait for now

    We've disabled MJIT CI on GitHub Actions for a while. It's convenient
    that fork repositories need to see failures or disable it.

    We should remove unused CI by default instead of silently disabling it.
    Since I saw --mjit-wait passed on my fork, I'd like to try running
    --mjit-wait one.

commit d8b1279d3bf4c80ad461ed393e6e4839f3f6e1ca
  Author:     Takashi Kokubun <takashikkbn@gmail.com>
  AuthorDate: 2021-12-14 09:08:01 +0900
  Commit:     usa <usa@garbagecollect.jp>
  CommitDate: 2023-03-29 10:57:57 +0900

    Rename --jit to --mjit (#5248)

    * Rename --jit to --mjit

    [Feature #18349]

    * Fix a few more --jit references

    * Fix MJIT Actions

    * More s/jit/mjit/ and re-introduce --disable-jit

    * Update NEWS.md

    * Fix test_bug_reporter_add

commit f84638273a51aa56513e8f64660411151b64a4f4
  Author:     git <svn-admin@ruby-lang.org>
  AuthorDate: 2023-02-07 17:26:49 +0900
  Commit:     git <svn-admin@ruby-lang.org>
  CommitDate: 2023-02-07 17:26:49 +0900

    * 2023-02-07 [ci skip]

commit 72beb9f868880a97c769d38b9aab99201300ece8
  Author:     Nobuyoshi Nakada <nobu@ruby-lang.org>
  AuthorDate: 2022-10-15 01:03:47 +0900
  Commit:     usa <usa@garbagecollect.jp>
  CommitDate: 2023-02-07 17:26:37 +0900

    Remove wrong dollar

commit a0a99185577794b1915eba0dc5154f09cc95e81d
  Author:     NAKAMURA Usaku <usa@ruby-lang.org>
  AuthorDate: 2022-12-08 12:31:20 +0900
  Commit:     NAKAMURA Usaku <usa@ruby-lang.org>
  CommitDate: 2022-12-08 12:31:20 +0900

    merge revision(s) 58cc3c9f: [Backport #19187]

            [Bug #19187] Fix for tzdata-2022g

            ---
             test/ruby/test_time_tz.rb | 21 +++++++++++++++------
             1 file changed, 15 insertions(+), 6 deletions(-)

commit 9de654cb74daaa8918ca6b04fbce211c3ccd4209
  Author:     NAKAMURA Usaku <usa@ruby-lang.org>
  AuthorDate: 2022-12-08 12:30:36 +0900
  Commit:     NAKAMURA Usaku <usa@ruby-lang.org>
  CommitDate: 2022-12-08 12:30:36 +0900

    Bump teeny

commit ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf
  Author:     Kazuki Yamaguchi <k@rhe.jp>
  AuthorDate: 2022-09-08 23:00:01 +0900
  Commit:     usa <usa@garbagecollect.jp>
  CommitDate: 2022-11-24 20:04:56 +0900

    Merge openssl-2.2.2

    The changes can be found at:

      https://github.com/ruby/openssl/compare/v2.2.1...v2.2.2

commit 5fb3cf463c2d78a161fba6a4486bd48e0cbd96c9
  Author:     Nobuyoshi Nakada <nobu@ruby-lang.org>
  AuthorDate: 2021-03-09 16:29:50 +0900
  Commit:     usa <usa@garbagecollect.jp>
  CommitDate: 2022-11-24 20:01:26 +0900

    Keep GC disabled until VM bootstrap has done [Bug #17583]

commit 22ace33a78583d92e08f556dcf8c3433118d0408
  Author:     git <svn-admin@ruby-lang.org>
  AuthorDate: 2022-11-24 11:21:39 +0900
  Commit:     git <svn-admin@ruby-lang.org>
  CommitDate: 2022-11-24 11:21:39 +0900

    * 2022-11-24 [ci skip]

commit bdb8980f01fb119074ccb8c82447cd0dd061d640
  Author:     nagachika <nagachika@ruby-lang.org>
  AuthorDate: 2022-10-20 20:30:28 +0900
  Commit:     usa <usa@garbagecollect.jp>
  CommitDate: 2022-11-24 11:21:28 +0900

    merge revision(s) 4f1e0bfacd93c28bff549e2f3603c3b4942429a3:

            Followed up CVE-2022-39253 for bundler examples

            ---
             spec/bundler/cache/git_spec.rb           | 3 +++
             spec/bundler/install/gemfile/git_spec.rb | 9 +++++++++
             spec/bundler/update/git_spec.rb          | 3 +++
             3 files changed, 15 insertions(+)

commit 3b231086cb3e4347ec025aed3a5c10f9e577bef5
  Author:     nagachika <nagachika@ruby-lang.org>
  AuthorDate: 2022-11-22 20:55:17 +0900
  Commit:     usa <usa@garbagecollect.jp>
  CommitDate: 2022-11-24 11:21:28 +0900

    merge revision(s) 36f297e62108072b9377d927321928b994f66a93:

            Use valid tokens as cookie names

            ---
             spec/ruby/library/cgi/cookie/name_spec.rb  | 12 ++++++------
             spec/ruby/library/cgi/cookie/parse_spec.rb | 10 +++++-----
             2 files changed, 11 insertions(+), 11 deletions(-)

commit 3ff3855be22543b78ddf789f520414eaee912f0d
  Author:     nagachika <nagachika@ruby-lang.org>
  AuthorDate: 2022-10-20 20:30:06 +0900
  Commit:     usa <usa@garbagecollect.jp>
  CommitDate: 2022-11-24 11:21:28 +0900

    merge revision(s) dae843f6b7502f921a7e66f39e3714a39d860181,86096a91d55f72620e0f8ca8634da5fa342dc35b:

            Bypass git submodule add/update with git config
             protocol.file.allow=always option.

            Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
            ---
             test/rubygems/test_gem_source_git.rb | 5 +++++
             1 file changed, 5 insertions(+)

            [rubygems/rubygems] Use [] instead of double-quotes

            ---
             test/rubygems/test_gem_source_git.rb | 2 +-
             1 file changed, 1 insertion(+), 1 deletion(-)

commit cbe2c0cd0908981dde1a1289403ac8468e3e06b9
  Author:     Hiroshi SHIBATA <hsbt@ruby-lang.org>
  AuthorDate: 2022-11-22 13:49:18 +0900
  Commit:     usa <usa@garbagecollect.jp>
  CommitDate: 2022-11-24 11:21:28 +0900

    Merge CGI-0.2.2

commit 9944ff540d12c7d18f758c4545176519e733dfef
  Author:     git <svn-admin@ruby-lang.org>
  AuthorDate: 2022-10-15 23:09:31 +0900
  Commit:     git <svn-admin@ruby-lang.org>
  CommitDate: 2022-10-15 23:09:31 +0900

    * 2022-10-15 [ci skip]

commit 6ea1a4771d0fed63f3374fa799c038967b6c1f7b
  Author:     Takashi Kokubun <takashikkbn@gmail.com>
  AuthorDate: 2022-10-14 08:28:16 +0900
  Commit:     usa <usa@garbagecollect.jp>
  CommitDate: 2022-10-15 23:09:20 +0900

    Upgrade zlib_version on AppVeyor

    They removed https://zlib.net/zlib1212.zip because
    https://zlib.net/zlib1213.zip was released :thinking_face:

    Fix CI failures like:
    https://ci.appveyor.com/project/ruby/ruby/builds/45064876/job/bb9biogolh0u2595

commit 1407149f7bf10168375a1fc40d6748fcfd4616e4
  Author:     Nobuyoshi Nakada <nobu@ruby-lang.org>
  AuthorDate: 2022-10-15 12:56:38 +0900
  Commit:     usa <usa@garbagecollect.jp>
  CommitDate: 2022-10-15 23:09:20 +0900

    Update zlib version

commit fb120ee041f0c2348e64f8ee683dc831310233b3
  Author:     git <svn-admin@ruby-lang.org>
  AuthorDate: 2022-10-01 15:58:37 +0900
  Commit:     git <svn-admin@ruby-lang.org>
  CommitDate: 2022-10-01 15:58:37 +0900

    * 2022-10-01 [ci skip]

commit 7f2c548255c2e9cf5c7089823153a8a06940f174
  Author:     Yuta Saito <kateinoigakukun@gmail.com>
  AuthorDate: 2022-09-24 03:36:04 +0900
  Commit:     usa <usa@garbagecollect.jp>
  CommitDate: 2022-10-01 15:58:25 +0900

    Initialize Objective-C classes before fork() for macOS 13

    Since macOS 13, CFString family API used in
    `rb_str_append_normalized_ospath` may internally use Objective-C classes
    (`NSTaggedPointerString` and `NSPlaceholderMutableString`) for small strings.

    On the other hand, Objective-C classes should not be used for the first
    time in a `fork()`'ed but not `exec()`'ed process. Violations for this rule
    can result deadlock during class initialization, so Objective-C runtime
    conservatively crashes on such cases by default.

    Therefore, we need to use CFString API to initialize Objective-C classes
    used internally *before* `fork()`.

    For more details, see https://bugs.ruby-lang.org/issues/18912

commit 2ae567acab101b4b89522084898fdae0302bb527
  Author:     Nobuyoshi Nakada <nobu@ruby-lang.org>
  AuthorDate: 2022-09-17 12:09:34 +0900
  Commit:     usa <usa@garbagecollect.jp>
  CommitDate: 2022-10-01 15:58:25 +0900

    [Bug #19005] dynamic_lookup linker option in external libraries

    The warning against `-undefined dynamic_lookup` is just a warning yet,
    and many gems seem to pay no attention to warnings.  Until it fails
    actually, keep it as a migration path, except for standard extension
    libraries and bundled extension gems.

commit 45c2fd9e3e93b88f84cb559d3bdc3a3b9f62f0b3
  Author:     Nobuyoshi Nakada <nobu@ruby-lang.org>
  AuthorDate: 2022-09-13 23:56:34 +0900
  Commit:     usa <usa@garbagecollect.jp>
  CommitDate: 2022-10-01 15:58:25 +0900

    -undefined dynamic_lookup is obsolete

commit b5fdd17c16b188fa5290cf48101736967a9a14bc
  Author:     git <svn-admin@ruby-lang.org>
  AuthorDate: 2022-09-20 16:50:16 +0900
  Commit:     git <svn-admin@ruby-lang.org>
  CommitDate: 2022-09-20 16:50:16 +0900

    * 2022-09-20 [ci skip]

commit 15615566931d645f19cb65d859fd113abab29204
  Author:     Nobuyoshi Nakada <nobu@ruby-lang.org>
  AuthorDate: 2022-08-17 00:45:27 +0900
  Commit:     usa <usa@garbagecollect.jp>
  CommitDate: 2022-09-20 16:50:02 +0900

    The tzdata 2022c removed Amsterdam Mean Time

commit 6be430ef7319fe86c451487008c380db7f0b0bf5
  Author:     git <svn-admin@ruby-lang.org>
  AuthorDate: 2022-09-16 15:13:00 +0900
  Commit:     git <svn-admin@ruby-lang.org>
  CommitDate: 2022-09-16 15:13:00 +0900

    * 2022-09-16 [ci skip]

commit 7900a9bd388cff65ba98e4fa09b296eb1f4f815e
  Author:     Hiroshi SHIBATA <hsbt@ruby-lang.org>
  AuthorDate: 2022-08-29 17:42:49 +0900
  Commit:     usa <usa@garbagecollect.jp>
  CommitDate: 2022-09-16 15:12:47 +0900

    Backport https://github.com/ruby/ruby/pull/6193

    Co-authored-by: Yuta Saito <kateinoigakukun@gmail.com>

commit 9733f4d0f00a38b5f77ee2e2fffdff866828cd66
  Author:     NAKAMURA Usaku <usa@ruby-lang.org>
  AuthorDate: 2022-07-25 20:39:12 +0900
  Commit:     NAKAMURA Usaku <usa@ruby-lang.org>
  CommitDate: 2022-07-25 20:39:12 +0900

    merge revision(s) edf01d4e82d8e44ee30ec41fbcb7f802bc8b8c5d: [Backport #18772]

            Treat NULL fake string as an empty string

            And the NULL string must be of size 0.
            ---
             string.c | 5 +++++
             1 file changed, 5 insertions(+)

commit 6ac4449fce6257ffe653a743880cead2e43167e8
  Author:     NAKAMURA Usaku <usa@ruby-lang.org>
  AuthorDate: 2022-06-18 23:00:21 +0900
  Commit:     NAKAMURA Usaku <usa@ruby-lang.org>
  CommitDate: 2022-06-18 23:00:21 +0900

    merge revision(s) 7f81f335478a3ca873f34e3bc0af6927819d3e84: [Backport #18734]

            Return `false` where sticky-bit is not provided [Bug #18734]

            ---
             file.c | 2 +-
             1 file changed, 1 insertion(+), 1 deletion(-)

commit 28b238f2cbcbf9993c4ce8031cbe19bd2accbfbf
  Author:     NAKAMURA Usaku <usa@ruby-lang.org>
  AuthorDate: 2022-06-18 22:54:12 +0900
  Commit:     NAKAMURA Usaku <usa@ruby-lang.org>
  CommitDate: 2022-06-18 22:54:12 +0900

    merge revision(s): a0040af6715d85f416f1282588974e151a8164eb

            [Win32] Fix mode of character/pipe device stat [Bug #18732]

commit 3fa771ddedac25560be57f4055f1767e6c810f58
  Author:     nagachika <nagachika@ruby-lang.org>
  AuthorDate: 2022-04-12 20:08:08 +0900
  Commit:     nagachika <nagachika@ruby-lang.org>
  CommitDate: 2022-04-12 20:48:55 +0900

    Fix dtoa buffer overrun

commit 052ec6d2585c3ace95671013d336f5543624ef3d
  Author:     nagachika <nagachika@ruby-lang.org>
  AuthorDate: 2022-04-12 20:07:08 +0900
  Commit:     nagachika <nagachika@ruby-lang.org>
  CommitDate: 2022-04-12 20:48:55 +0900

    Just free compiled pattern if no space is used

commit 47c3f31fd93fc5bb60bf401b666b94e667ec717e
  Author:     git <svn-admin@ruby-lang.org>
  AuthorDate: 2022-04-12 14:07:39 +0900
  Commit:     git <svn-admin@ruby-lang.org>
  CommitDate: 2022-04-12 14:07:39 +0900

    * 2022-04-12 [ci skip]

commit a6d990892c1d5496468bbacdd4cba99e8f0bd675
  Author:     David Rodríguez <deivid.rodriguez@riseup.net>
  AuthorDate: 2022-01-25 20:48:16 +0900
  Commit:     nagachika <nagachika@ruby-lang.org>
  CommitDate: 2022-04-12 14:07:25 +0900

    Fix spec to not touch the network

    And not depend on the state of rack's master branch, in particular, on
    their Ruby support range.

commit 5758c6487de1cdc6df33dfabdd59de23d3fd55f4
  Author:     Nobuyoshi Nakada <nobu@ruby-lang.org>
  AuthorDate: 2022-01-31 09:42:40 +0900
  Commit:     nagachika <nagachika@ruby-lang.org>
  CommitDate: 2022-04-12 14:07:25 +0900

    Expect to receive a non-keywords hash

    `RSpec::Mocks::ArgumentListMatcher#args_match?` fails when a
    non-keywords hash is passed while a keyword hash is expected.

    This is a change in `rspec-mocks` 3.10.3, so we need to adapt to it.

commit cdec8a29c5e2e3fedc2e7726d409121d5e2890da
  Author:     Hiroshi SHIBATA <hsbt@ruby-lang.org>
  AuthorDate: 2022-04-11 19:45:59 +0900
  Commit:     nagachika <nagachika@ruby-lang.org>
  CommitDate: 2022-04-12 14:07:25 +0900

    Merge Bundler-2.2.33

commit 48be8051ef26dd93e714846d94a2c3794c5b101b
  Author:     Hiroshi SHIBATA <hsbt@ruby-lang.org>
  AuthorDate: 2022-04-11 19:45:23 +0900
  Commit:     nagachika <nagachika@ruby-lang.org>
  CommitDate: 2022-04-12 14:07:25 +0900

    Merge RubyGems-3.2.33

commit e73165c4cd3876435040100b8acab6ffc84f8fa8
  Author:     nagachika <nagachika@ruby-lang.org>
  AuthorDate: 2022-04-02 14:24:20 +0900
  Commit:     nagachika <nagachika@ruby-lang.org>
  CommitDate: 2022-04-02 14:24:20 +0900

    merge revision(s) 035b75c8f4097a48cde3cebc5db5e2efddc21546:

            Update zlib version to 1.2.12

            ---
             .appveyor.yml | 2 +-
             1 file changed, 1 insertion(+), 1 deletion(-)

commit 74b42fe78154ff5e5a63342b17d005d6c4fa7761
  Author:     nagachika <nagachika@ruby-lang.org>
  AuthorDate: 2022-04-02 14:20:08 +0900
  Commit:     nagachika <nagachika@ruby-lang.org>
  CommitDate: 2022-04-02 14:20:08 +0900

    remove bundled zlib patch file for mswin platform. It's already applied at zlib-1.2.12.

commit b364e23d76ccc232c06cc691b467f17e303caa67
  Author:     nagachika <nagachika@ruby-lang.org>
  AuthorDate: 2022-04-02 14:16:13 +0900
  Commit:     nagachika <nagachika@ruby-lang.org>
  CommitDate: 2022-04-02 14:16:13 +0900

    remove bundled zlib patch file for mswin platform. It's already applied at zlib-1.2.12.

commit 6a022fb22dac7dcc9d68e339230f8b3cc2749842
  Author:     nagachika <nagachika@ruby-lang.org>
  AuthorDate: 2022-04-02 14:08:11 +0900
  Commit:     nagachika <nagachika@ruby-lang.org>
  CommitDate: 2022-04-02 14:08:11 +0900

    rename filepath in patch for zlib.

commit 2802f0628c67fd09890fd269c1ce818322455264
  Author:     nagachika <nagachika@ruby-lang.org>
  AuthorDate: 2022-04-02 14:03:21 +0900
  Commit:     nagachika <nagachika@ruby-lang.org>
  CommitDate: 2022-04-02 14:03:37 +0900

    rename bundled zlib patch file for mswin platform.

commit 45ee8ad921df53ac6598e4b4c927422664db938a
  Author:     git <svn-admin@ruby-lang.org>
  AuthorDate: 2022-04-02 13:58:40 +0900
  Commit:     git <svn-admin@ruby-lang.org>
  CommitDate: 2022-04-02 13:58:40 +0900

    * 2022-04-02 [ci skip]

commit 5fafd801fb2db9206097e352bbed02b1055e205a
  Author:     nagachika <nagachika@ruby-lang.org>
  AuthorDate: 2022-04-02 13:58:13 +0900
  Commit:     nagachika <nagachika@ruby-lang.org>
  CommitDate: 2022-04-02 13:58:13 +0900

    bundle zlib-1.2.12 instead of 1.2.11.

commit a72b7b898c69a116d754d599e8bb061761015255
  Author:     nagachika <nagachika@ruby-lang.org>
  AuthorDate: 2022-03-21 16:23:30 +0900
  Commit:     nagachika <nagachika@ruby-lang.org>
  CommitDate: 2022-03-21 16:52:05 +0900

    merge revision(s) d0d6227a0da5925acf946a09191f172daf53baf2,fff1edf23ba28267bf57097c269f7fa87530e3fa: [Backport #17529]

            alen should be actions number on ractor_select()

            alen was number of rs, but it should be actions number
            (taking ractors + receiving + yielding).
            ---
             ractor.c | 13 ++++++-------
             1 file changed, 6 insertions(+), 7 deletions(-)

            fix Ractor.yield(obj, move: true)

            Ractor.yield(obj, move: true) and
            Ractor.select(..., yield_value: obj, move: true) tried to yield a
            value with move semantices, but if the trial is faild, the obj
            should not become a moved object.

            To keep this rule, `wait_moving` wait status is introduced.

            New yield/take process:
            (1) If a ractor tried to yield (move:true), make taking racotr's
                wait status `wait_moving` and make a moved object by
                `ractor_move(obj)` and wakeup taking ractor.
            (2) If a ractor tried to take a message from a ractor waiting fo
                yielding (move:true), wakeup the ractor and wait for (1).
            ---
             bootstraptest/test_ractor.rb | 25 +++++++++++++++
             ractor.c                     | 73 +++++++++++++++++++++++++++++++++++---------
             ractor_core.h                |  1 +
             3 files changed, 84 insertions(+), 15 deletions(-)

commit 1ea12cf590603dbc800314c98099eca9eeca1128
  Author:     nagachika <nagachika@ruby-lang.org>
  AuthorDate: 2022-03-21 16:46:58 +0900
  Commit:     nagachika <nagachika@ruby-lang.org>
  CommitDate: 2022-03-21 16:46:58 +0900

    update common.mk dependency to follow up the previous commit.

commit 1a1701c0c3d86c35019f2edf23c35ec6110d1bac
  Author:     nagachika <nagachika@ruby-lang.org>
  AuthorDate: 2022-03-21 16:32:26 +0900
  Commit:     nagachika <nagachika@ruby-lang.org>
  CommitDate: 2022-03-21 16:32:26 +0900

    class.c: include gc.h to suppress 'implicit declaration of function' on some environments.

commit e0146e6cc8f3578b02ad5f228f86bf1aef566d16
  Author:     nagachika <nagachika@ruby-lang.org>
  AuthorDate: 2022-03-21 15:35:07 +0900
  Commit:     nagachika <nagachika@ruby-lang.org>
  CommitDate: 2022-03-21 15:35:07 +0900

    merge revision(s) 97426e15d721119738a548ecfa7232b1d027cd34: [Backport #18627]

            [Bug #18627] Fix crash when including module

            During lazy sweeping, the iclass could be a dead object that has not yet
            been swept. However, the chain of superclasses of the iclass could
            already have been swept (and become a new object), which would cause a
            crash when trying to read the object.
            ---
             class.c | 48 ++++++++++++++++++++++++++++++------------------
             1 file changed, 30 insertions(+), 18 deletions(-)

commit f404b21f849af06fb8bbd4b87fdfb585e904d6c3
  Author:     nagachika <nagachika@ruby-lang.org>
  AuthorDate: 2022-03-13 15:42:14 +0900
  Commit:     nagachika <nagachika@ruby-lang.org>
  CommitDate: 2022-03-13 15:42:14 +0900

    merge revision(s) 496591de96b261b8789332c7f8b2bfbd17658955: [Backport #18578]

            st.c: Do not clear entries_bound when calling Hash#shift for empty
             hash

            tab->entries_bound is used to check if the bins are full in
            rebuild_table_if_necessary.

            Hash#shift against an empty hash assigned 0 to tab->entries_bound, but
            didn't clear the bins. Thus, the table is not rebuilt even when the bins
            are full. Attempting to add a new element into full-bin hash gets stuck.

            This change stops clearing tab->entries_bound in Hash#shift.
            [Bug #18578]
            ---
             st.c                   |  1 -
             test/ruby/test_hash.rb | 13 +++++++++++++
             2 files changed, 13 insertions(+), 1 deletion(-)

commit 2bb5fa495bf9d366d3c1fefc6b093dc4830f27bf
  Author:     nagachika <nagachika@ruby-lang.org>
  AuthorDate: 2022-03-13 15:20:35 +0900
  Commit:     nagachika <nagachika@ruby-lang.org>
  CommitDate: 2022-03-13 15:20:35 +0900

    merge revision(s) 29f6f79e7396018962eb25c5f5e409f5fe28a73b: [Backport #17788] [Backport #18574]

            Get `ruby_nonempty_memcpy` to have C linkage

            Fixes [Bug #17788]
            ---
             include/ruby/internal/memory.h | 2 ++
             1 file changed, 2 insertions(+)

commit 0bd3e436e27c048933133bc19f863c954ed3e3a6
  Author:     nagachika <nagachika@ruby-lang.org>
  AuthorDate: 2022-03-13 15:16:29 +0900
  Commit:     nagachika <nagachika@ruby-lang.org>
  CommitDate: 2022-03-13 15:16:29 +0900

    merge revision(s) c79d2e54748f52c5023b0a1ee441561df9826c17: [Backport #18562]

            Fix TAG_THROW through require [Bug #18562]

            Previously this was being incorrectly swapped with TAG_RAISE in the next
            line. This would end up checking the T_IMEMO throw_data to the exception
            handling (which calls Module#===). This happened to not break existing
            tests because Module#=== returned false when klass is NULL.

            This commit handles throw from require correctly by jumping to the tag
            retaining the TAG_THROW state.
            ---
             load.c                      |  2 +-
             test/ruby/test_exception.rb | 21 +++++++++++++++++++++
             2 files changed, 22 insertions(+), 1 deletion(-)

commit f4f0c793f6eb427b0a85445bff49fdc6b73447ae
  Author:     nagachika <nagachika@ruby-lang.org>
  AuthorDate: 2022-03-13 15:10:34 +0900
  Commit:     nagachika <nagachika@ruby-lang.org>
  CommitDate: 2022-03-13 15:10:34 +0900

    merge revision(s) b555e659c4974acc423083b71b1bd5ec6a926046: [Backport #18388]

            Do not use `fcopyfile` if appending to non-empty file [Bug #18388]

            `fcopyfile` appends `src` to `to` and then truncates `to` to it's
            original size.
            ---
             io.c                 |  7 +++++++
             test/ruby/test_io.rb | 12 ++++++++++++
             2 files changed, 19 insertions(+)

commit 6175823bab28b5d12f66371d67d006df37751fbc
  Author:     nagachika <nagachika@ruby-lang.org>
  AuthorDate: 2022-03-13 11:52:53 +0900
  Commit:     nagachika <nagachika@ruby-lang.org>
  CommitDate: 2022-03-13 11:52:53 +0900

    merge revision(s) 7ff1bf317887c0d7b21e91ad548d07b9f05c540c,e89d80702bd98a8276243a7fcaa2a158b3bfb659: [Backport #18516]

            An alias can suppress method redefinition warning

            ---
             test/ruby/test_alias.rb | 11 +++++++++++
             1 file changed, 11 insertions(+)

            Fix memory leak at the same named alias [Bug #18516]

            When aliasing a method to the same name method, set a separate bit
            flag on that method definition, instead of the reference count
            increment.  Although this kind of alias has no actual effect at
            runtime, is used as the hack to suppress the method re-definition
            warning.
            ---
             method.h                |  1 +
             test/ruby/test_alias.rb | 18 ++++++++++++++++++
             vm_method.c             |  9 ++++++++-
             3 files changed, 27 insertions(+), 1 deletion(-)

commit 9c2213f6695a16917dbe7b5a3a334116d6d8bbf6
  Author:     nagachika <nagachika@ruby-lang.org>
  AuthorDate: 2022-03-13 11:49:15 +0900
  Commit:     nagachika <nagachika@ruby-lang.org>
  CommitDate: 2022-03-13 11:49:15 +0900

    merge revision(s) 6a6227e0168b059c3ed34c9f0ace2e5dc2364221: [Backport #18517]

            Shifting zero always results in zero [Bug #18517]

            ---
             numeric.c | 2 ++
             1 file changed, 2 insertions(+)

commit 6a8c166498b856ca1dcb53248f0be5fc138f1af3
  Author:     nagachika <nagachika@ruby-lang.org>
  AuthorDate: 2022-03-13 11:47:39 +0900
  Commit:     nagachika <nagachika@ruby-lang.org>
  CommitDate: 2022-03-13 11:47:39 +0900

    merge revision(s) 5c7af72304d0ad33cd3f21b24a4bc44e8acd5b2c,d650b17686d49c2ce8e6a87039861154e93d4621: [Backport #18497]

            Assuming EXIT_SUCCESS equals 0 is not portable

            ---
             test/ruby/test_fiber.rb | 6 +++---
             1 file changed, 3 insertions(+), 3 deletions(-)

            `rb_fiber_terminate` must not return [Bug #18497]

            In a forked process from a fiber, the fiber becomes the only
            fiber, `fiber_switch` does nothing as there is no other fibers,
            `rb_fiber_terminate` does not terminate the fiber.  In that case,
            reaches the end of `fiber_entry` finaly, which is declared as
            "COROUTINE" and should never return.
            ---
             cont.c                     |  3 ++-
             eval_intern.h              |  2 +-
             test/fiber/test_process.rb | 15 +++++++++++++++
             test/ruby/test_fiber.rb    |  5 +++++
             4 files changed, 23 insertions(+), 2 deletions(-)

commit 42b1e87ba7856f92973924985a63a60b5fa750c8
  Author:     nagachika <nagachika@ruby-lang.org>
  AuthorDate: 2022-03-13 11:37:03 +0900
  Commit:     nagachika <nagachika@ruby-lang.org>
  CommitDate: 2022-03-13 11:37:03 +0900

    merge revision(s) ae5458f228a5477383e9c00425d85d50a3867817: [Backport #18475]

            thread.c: Convert TAG_BREAK to a normal exception at thread top-level

            [Bug #18475]
            ---
             test/ruby/test_enum.rb | 11 +++++++++++
             thread.c               |  3 +++
             2 files changed, 14 insertions(+)

commit e18e6af604786be481115c7340c1450332615b57
  Author:     nagachika <nagachika@ruby-lang.org>
  AuthorDate: 2022-03-12 16:53:37 +0900
  Commit:     nagachika <nagachika@ruby-lang.org>
  CommitDate: 2022-03-12 16:53:37 +0900

    merge revision(s) 9e0a91d0640600f2dfd7fc1d5fae6667019c9ca5: [Backport #18458]

            Don't segfault if Warning.warn is undefined

            Check that there is a method entry for the method before passing
            it to rb_method_entry_arity.

            Fixes [Bug #18458]
            ---
             error.c                     | 3 ++-
             test/ruby/test_exception.rb | 8 ++++++++
             2 files changed, 10 insertions(+), 1 deletion(-)

commit bac99c5175bf58815846f9987093a6d944d07fd3
  Author:     nagachika <nagachika@ruby-lang.org>
  AuthorDate: 2022-03-12 16:36:40 +0900
  Commit:     nagachika <nagachika@ruby-lang.org>
  CommitDate: 2022-03-12 16:36:40 +0900

    merge revision(s) bcc2bb28b04054106f4a36e8fd69b2af6ecb033a: [Backport #18500]

            Fix stack buffer overflow

            https://hackerone.com/reports/1306859
            ---
             include/ruby/internal/memory.h | 6 +++---
             random.c                       | 7 ++-----
             2 files changed, 5 insertions(+), 8 deletions(-)

commit 7c0537906314f0c2a317b37661ccdec8dddc6277
  Author:     nagachika <nagachika@ruby-lang.org>
  AuthorDate: 2022-03-12 16:30:52 +0900
  Commit:     nagachika <nagachika@ruby-lang.org>
  CommitDate: 2022-03-12 16:30:52 +0900

    merge revision(s) fdf39963490cf2cf95b30d91bb9b35964c2c2350: [Backport #18421]

            Empty and return the buffer if zero size is given [Bug #18421]

            In `IO#readpartial` and `IO#read_nonblock`, as well as `IO#read`.
            ---
             io.c                 |  8 ++++++--
             test/ruby/test_io.rb | 21 +++++++++++++++++++++
             2 files changed, 27 insertions(+), 2 deletions(-)

commit f2d996dcff56057b48ae41ab6f23e7654848ea4b
  Author:     nagachika <nagachika@ruby-lang.org>
  AuthorDate: 2022-03-12 16:28:26 +0900
  Commit:     nagachika <nagachika@ruby-lang.org>
  CommitDate: 2022-03-12 16:28:26 +0900

    merge revision(s) d6c5a30cfdf658280338dbb8c8b17fab3190b928,a2d4e1cda68a49980a4f9f353f400efbde7e7884: [Backport #18392]

            ObjectSpace::WeakMap#inspect: check if living object [Bug #18392]

            ---
             gc.c                      | 29 +++++++++++++++++++++++------
             test/ruby/test_weakmap.rb |  9 +++++++++
             2 files changed, 32 insertions(+), 6 deletions(-)

            Fixed the check order in wmap_live_p [Bug #18392]

            Check if the object is a pointer to heap before check the flag in
            that object.
            ---
             gc.c | 35 ++++++++++++++++++++++-------------
             1 file changed, 22 insertions(+), 13 deletions(-)

commit 09b27ec6a984ec1b660d5b7b48f2ff4d5a0065bc
  Author:     nagachika <nagachika@ruby-lang.org>
  AuthorDate: 2022-03-12 16:01:47 +0900
  Commit:     nagachika <nagachika@ruby-lang.org>
  CommitDate: 2022-03-12 16:01:47 +0900

    merge revision(s) 737e4432b978eb4b9f5b10fb6cc6d9c883a5d17a: [Backport #18409]

            configure: add -Wl,--no-as-needed

            It is reported that combination of `--enable-shared --with-jemalloc`
            breaks on Debian bullseye (testig).  Deeper investigation revealed that
            this system's `ld(1)` is patched, to turn `ld --as-needed` on by
            default.

            This linker flag strips "unnecessary" library dependencies from an
            executable.  In case of `ruby(1)` (of `--enable-shared`), because
            everything is in `libruby.so`, the binary itself doesn't include any
            calls to `malloc(3)` at all.  So in spite of our explicit `-ljemalloc`
            flag, it is ignored.  Libc's one is chosen instead.

            This is not what we want.  Let's force our `ruby(1)` link what we want.

            Fixes https://github.com/ruby/ruby/pull/4627

            The author would like to acknowledge
            Akihiko Odaki <akihiko.odaki@gmail.com> for their contributions.
            ---
             configure.ac | 5 +++++
             1 file changed, 5 insertions(+)

commit 4b1cee1431b44e923611c65a8ec5cc61d4025641
  Author:     nagachika <nagachika@ruby-lang.org>
  AuthorDate: 2022-03-12 16:00:02 +0900
  Commit:     nagachika <nagachika@ruby-lang.org>
  CommitDate: 2022-03-12 16:00:02 +0900

    merge revision(s) e2ec97c4b823a0b2e0c31e7a6d77b1dcdc0dfada: [Backport #18415]

            [DOC] How to get the longest last match [Bug #18415]

            ---
             string.c | 32 +++++++++++++++++++++++++++++++-
             1 file changed, 31 insertions(+), 1 deletion(-)

commit 3ce60f44b8de3aabb31c37d2afd2a622a64a3e6f
  Author:     nagachika <nagachika@ruby-lang.org>
  AuthorDate: 2022-03-12 15:58:42 +0900
  Commit:     nagachika <nagachika@ruby-lang.org>
  CommitDate: 2022-03-12 15:58:42 +0900

    merge revision(s) 0130e17a410d60a10e7041ce98748b8de6946971,32b7dcfb56a417c1d1c354102351fc1825d653bf,79cc566ab4cdf75f125ecf413a27d353a9756c08: [Backport #18394]

            Always enabled read barrier even on GC.compact

            Some objects can survive the GC before compaction, but get collected in
            the second compaction.  This means we could have objects reference
            T_MOVED during "free" in the second, compacting GC.  If that is the
            case, we need to invalidate those "moved" addresses.  Invalidation is
            done via read barrier, so we need to make sure the read barrier is
            active even during `GC.compact`.

            This also means we don't actually need to do one GC before compaction,
            we can just do the compaction and GC in one step.
            ---
             gc.c | 20 +++-----------------
             1 file changed, 3 insertions(+), 17 deletions(-)

            Fix more assumptions about the read barrier

            This is a continuation of 0130e17a410d60a10e7041ce98748b8de6946971.  We
            need to always use the read barrier
            ---
             gc.c | 10 ----------
             1 file changed, 10 deletions(-)

            Make during_compacting flag in GC one bit

            Commit c32218de1ba094223420a4ea017707f48d0009c5 turned during_compacting
            flag to 2 bits to support the case when there is no write barrier. But
            commit 32b7dcfb56a417c1d1c354102351fc1825d653bf changed compaction to
            always enable the write barrier. This commit cleans up some of the
            leftover code.
            ---
             gc.c | 4 ++--
             1 file changed, 2 insertions(+), 2 deletions(-)

commit e413a8ff970fc7692e6c0050a23678605ade884e
  Author:     nagachika <nagachika@ruby-lang.org>
  AuthorDate: 2022-03-12 15:52:46 +0900
  Commit:     nagachika <nagachika@ruby-lang.org>
  CommitDate: 2022-03-12 15:52:46 +0900

    merge revision(s) ecb2ff60507a41c624f59cb9da6a008ab3ec36e1: [Backport #18403]

            intern/select/posix.h: remove unused parameter from rb_fd_dup

            This unused parameter seems to be accidently introduced by https://github.com/ruby/ruby/commit/9e6e39c
            ---
             include/ruby/internal/intern/select/posix.h | 3 +--
             1 file changed, 1 insertion(+), 2 deletions(-)

commit 2ec864d9b7a2c79b5bd9136665aa6f705fa76e53
  Author:     nagachika <nagachika@ruby-lang.org>
  AuthorDate: 2022-03-12 14:43:41 +0900
  Commit:     nagachika <nagachika@ruby-lang.org>
