summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
* teenyupv3_1_1ruby_3_1NARUSE, Yui2022-02-18-3/+3
|
* merge revision(s) 496591de96b261b8789332c7f8b2bfbd17658955: [Backport #18578]NARUSE, Yui2022-02-17-3/+15
| | | | | | | | | | | | | | | | | | | 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(-)
* * 2022-02-14 [ci skip]git2022-02-14-1/+1
|
* Merge RubyGems-3.3.7 and Bundler-2.3.7 (#5543)Hiroshi SHIBATA2022-02-14-129/+154
|
* Fixed path for ipaddr.rb (#5533)Hiroshi SHIBATA2022-02-08-3/+11
|
* * 2022-02-08 [ci skip]git2022-02-08-1/+1
|
* Merge ipaddr-1.2.4 (#5526)Hiroshi SHIBATA2022-02-08-2/+38
| | | [Bug #18570]
* merge revision(s) c79d2e54748f52c5023b0a1ee441561df9826c17: [Backport #18562]NARUSE, Yui2022-02-07-2/+23
| | | | | | | | | | | | | | | | 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(-)
* merge revision(s) 2a76440fac62b: [Backport #18501]NARUSE, Yui2022-02-07-6/+16
| | | | | | | | | | | | | | | | | | | | | | [Bug #18501] Fire write barrier after hash has been written Before this change the write barrier was executed before the key and value were actually reachable via the Hash. This could cause inconsistencies in object coloration which would lead to accidental collection of dup'd keys. Example: 1. Object O is grey, Object P is white. 2. Write barrier fires O -> P 3. Write barrier does nothing 4. Malloc happens, which starts GC 5. GC colors O black 6. P is written in to O (now we have O -> P reference) 7. P is now accidentally treated as garbage --- hash.c | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-)
* merge revision(s) 67f4729: [Backport #18556]NARUSE, Yui2022-02-07-2/+6
| | | | | | | | | [Bug#18556] Fallback `MAP_ ANONYMOUS` Define `MAP_ANONYMOUS` to `MAP_ANON` if undefined on old systems. --- gc.c | 4 ++++ 1 file changed, 4 insertions(+)
* * 2022-02-03 [ci skip]git2022-02-03-1/+1
|
* merge revision(s) ↵NARUSE, Yui2022-02-03-2/+39
| | | | | | | | | | | | | | | | | | | | | | | 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(-)
* Update bundled gems list at 2022-02-02git2022-02-02-5/+5
|
* Merge pull request #5482 from hsbt/rubygems-3-3-bundler-2-3Hiroshi SHIBATA2022-02-02-875/+1687
| | | Merge RubyGems 3.3.x and Bundler 2.3.x
* * 2022-02-02 [ci skip]git2022-02-02-1/+1
|
* Remove "Miscellaneous checks" from CINARUSE, Yui2022-02-02-96/+0
| | | | It is expected to use on master branch
* merge revision(s) ↵NARUSE, Yui2022-02-01-4/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | f27eb8148f5a72bbacfebfecc7de9305471bb5c9,d75f7078c831d45ab5ba2fae4fbb308d01a21e46,d5836db1b398a7936b0461b3011db66f6cc8c490: [Backport #18443] Sync io-console gem. --- ext/io/console/console.c | 8 ++++++-- test/io/console/test_io_console.rb | 8 ++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) [ruby/io-console] bump up to 0.5.11 https://github.com/ruby/io-console/commit/ad3805200c --- ext/io/console/io-console.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Fix `Leaked file descriptor: TestIO_Console#test_console_kw` ``` Leaked file descriptor: TestIO_Console#test_console_kw: 10 : #<File:/dev/tty> ``` --- test/io/console/test_io_console.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
* Revert "Fix console.c usage of `rb_io_wait`."NARUSE, Yui2022-02-01-1/+1
| | | | This reverts commit aa3b2c81c8de2e70bd100e92436f15c03523eaf7.
* merge revision(s) 6a6227e0168b059c3ed34c9f0ace2e5dc2364221: [Backport #18517]NARUSE, Yui2022-02-01-3/+5
| | | | | | | | Shifting zero always results in zero [Bug #18517] --- numeric.c | 2 ++ 1 file changed, 2 insertions(+)
* merge revision(s) ↵NARUSE, Yui2022-01-31-6/+27
| | | | | | | | | | | | | | | | | | | | | | | | 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(-)
* merge revision(s) f3c77bd480834f2835fe6fef5c0475336248dbde: [Backport #18489]NARUSE, Yui2022-01-31-3/+11
| | | | | | | | | Fix the placeholder subclass entry skipping [Bug #18489] --- class.c | 3 +-- test/ruby/test_module.rb | 9 +++++++++ 2 files changed, 10 insertions(+), 2 deletions(-)
* Prefer `wait_readable` rather than `IO.select`.Samuel Williams2022-01-31-2/+1
|
* Fix incorrect minimum read length.Samuel Williams2022-01-31-6/+2
|
* Fix console.c usage of `rb_io_wait`.Samuel Williams2022-01-31-1/+1
|
* merge revision(s) ae5458f228a5477383e9c00425d85d50a3867817: [Backport #18475]NARUSE, Yui2022-01-31-1/+15
| | | | | | | | | | 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(+)
* merge revision(s) 92630e2346a221fdfeaa484632938a06765bc6e5: [Backport #18468]NARUSE, Yui2022-01-31-9/+9
| | | | | | | | | | | | [ruby/optparse] Fix links to the page directory files [Bug #18468] https://github.com/ruby/optparse/commit/dab72c543d --- doc/optparse/creates_option.rdoc | 4 ++-- doc/optparse/option_params.rdoc | 2 +- doc/optparse/tutorial.rdoc | 4 ++-- lib/optparse.rb | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-)
* merge revision(s) a79c59472df38297c246b27713c277f2edaefa7a: [Backport #18292]NARUSE, Yui2022-01-30-2/+12
| | | | | | | | | | | | | | | | | | | | | | | Allow include before calling Module#initialize This is to allow Module subclasses that include modules before calling super in the subclass's initialize. Remove rb_module_check_initializable from Module#initialize. Module#initialize only calls module_exec if a block is passed, it doesn't have other issues that would cause problems if called multiple times or with an already initialized module. Move initialization of super to Module#allocate, though I'm not sure it is required there. However, it's needed to be removed from Module#initialize for this to work. Fixes [Bug #18292] --- class.c | 1 + object.c | 1 - test/ruby/test_module.rb | 10 ++++++++++ 3 files changed, 11 insertions(+), 1 deletion(-)
* merge revision(s) c764e368bd9c0487e6cc97f8a62e0e0e99a0d7c5: [Backport #18469]NARUSE, Yui2022-01-30-2/+2
| | | | | | | | | Fix default --jit-max-cache in `ruby --help` changed at 028f1887c2bfa50dcfc1b623470d6ab1b880fdde --- ruby.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
* merge revision(s) 5917f49ad03cd3b2c13d3eea85c969a113b83bf8: [Backport #18436]NARUSE, Yui2022-01-30-2/+2
| | | | | | | | | | | | Fix documentation for Dir.glob Dir.glob("*", File::FNM_DOTMATCH) no longer includes ".." in the returned array as of Ruby 3.1. Fixes [Bug #18436] --- dir.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
* merge revision(s) 9e0a91d0640600f2dfd7fc1d5fae6667019c9ca5: [Backport #18458]NARUSE, Yui2022-01-30-2/+11
| | | | | | | | | | | | | 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(-)
* merge revision(s) 5414de4b6e4372af832e338f8eb7a9fe8de17c84: [Backport #18453]NARUSE, Yui2022-01-30-3/+22
| | | | | | | | | | | | | | YJIT: Fix SP index with optarg and unordered kwarg Previously when we were calling a method with an optional argument and multiple keywords arguments which weren't in the order the receiver expected we would use the wrong SP index to rearrange them. Fixes Bug #18453 --- bootstraptest/test_yjit.rb | 16 ++++++++++++++++ yjit_codegen.c | 7 +++++-- 2 files changed, 21 insertions(+), 2 deletions(-)
* merge revision(s) 0dc7816c4350683ccd020f5759eee4914de0085d: [Backport #18434]NARUSE, Yui2022-01-30-8/+16
| | | | | | | | | | | Make RubyVM::AST.of work with code written in `-e` command-line option [Bug #18434] --- ast.c | 11 +++++++---- test/ruby/test_ast.rb | 5 +++++ 2 files changed, 12 insertions(+), 4 deletions(-)
* Revert "Do not include external library sources into packages"v3_1_0NARUSE, Yui2021-12-25-3/+1
| | | | | | This reverts commit a042043487eb4c7d39307b8e784ede1856455c3e. (cherry picked from commit 8325094177de60d365b2b5507488f0b53d11c736)
* Prevent installing zlib libraryNARUSE, Yui2021-12-25-8/+0
| | | | (cherry picked from commit 82c8acbcfd3197e19620dc6024d08c85ea99a05b)
* Revert "make-snapshot: add -extlibs option"NARUSE, Yui2021-12-25-2/+1
| | | | | | | This reverts commit afa9d65d61857792508b1405835b07b78e24449c. It prevents installing libffi. (cherry picked from commit 1cc02078e503a18f6d1fcbd3e4d29c574895957d)
* fix tool/format-releaseNARUSE, Yui2021-12-25-8/+11
| | | | | | Pass ruby directory path (cherry picked from commit 05faa36028a0a00788e2416a91e0bba21bd6f6ad)
* Update default gems list at 8247b193c0dd06db9ea56812954dda [ci skip]Nobuyoshi Nakada2021-12-25-1/+1
| | | | (cherry picked from commit 1ad42f8a761b1f22464d5b15aac7ce994ecffc4b)
* [ruby/io-console] bump up to 0.5.10Nobuyoshi Nakada2021-12-25-1/+1
| | | | | https://github.com/ruby/io-console/commit/806c65e22b (cherry picked from commit 8247b193c0dd06db9ea56812954dda8fed89458d)
* [ruby/io-console] No longer support dead versionsNobuyoshi Nakada2021-12-25-1/+1
| | | | | https://github.com/ruby/io-console/commit/e9478509e9 (cherry picked from commit 9368fa6c3073d5fe4380a5e84eb59f7cec2ce62c)
* NEWS: mention Time.new argument error moreNobuyoshi Nakada2021-12-25-2/+6
| | | | | | | Show an example of Time.new with perhaps unexpected results in earlier versions. (cherry picked from commit 14e550052be73ed35bfcbb0b6be696519ad7e092)
* Suppress undef warnings for USE_RUBY_DEBUG_LOGNobuyoshi Nakada2021-12-25-4/+4
| | | | (cherry picked from commit 975a6efd7ea144275d4774d18ff0f568c1a1dc97)
* Define fallback RUBY_DEVEL to suppress undef warningsNobuyoshi Nakada2021-12-25-0/+4
| | | | (cherry picked from commit 566bdaef318674c416494786da551021afb1b5d7)
* Raise proper exception when month argument is not a nameNobuyoshi Nakada2021-12-25-10/+7
| | | | | https://bugs.ruby-lang.org/issues/17485#change-89871 (cherry picked from commit 0867b638aff9ec192ca420a44ffa5a77c892e8f2)
* Fix the names of Thread::Queue and method for the cross-referenceNobuyoshi Nakada2021-12-25-5/+5
| | | | (cherry picked from commit 42eb9bf37ac42cc792d619e28d153c164a5e6604)
* NEWS: Put spaces to make Method and UnboundMethod linksNobuyoshi Nakada2021-12-25-1/+1
| | | | (cherry picked from commit 30374b4fb77a1407e5ba8e98be03a92c4a317495)
* Add IRB Improvements section to NEWS.mdaycabta2021-12-25-0/+6
| | | | (cherry picked from commit dba24e6a1ae0d7dba313bb5f65a4be927bd6f236)
* v3.1.0p0NARUSE, Yui2021-12-25-1/+1
|
* NEWS: Mention about more strict conversions for [Feature #17485]Nobuyoshi Nakada2021-12-25-0/+13
|
* Update default gems list at 0f1fbc6421641d80a03f0b72e3d775 [ci skip]git2021-12-25-1/+1
|
* [ruby/irb] Version 1.4.1aycabta2021-12-25-1/+1
| | | | https://github.com/ruby/irb/commit/b1d9c34441