summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-04-12teenyupv3_1_2NARUSE, Yui
2022-04-12Fix dtoa buffer overrunNARUSE, Yui
2022-04-12Just free compiled pattern if no space is usedNARUSE, Yui
2022-02-18teenyupv3_1_1NARUSE, Yui
2022-02-17merge revision(s) 496591de96b261b8789332c7f8b2bfbd17658955: [Backport #18578]NARUSE, Yui
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* 2022-02-14 [ci skip]git
2022-02-14Merge RubyGems-3.3.7 and Bundler-2.3.7 (#5543)Hiroshi SHIBATA
2022-02-08Fixed path for ipaddr.rb (#5533)Hiroshi SHIBATA
2022-02-08* 2022-02-08 [ci skip]git
2022-02-08Merge ipaddr-1.2.4 (#5526)Hiroshi SHIBATA
[Bug #18570]
2022-02-07merge revision(s) c79d2e54748f52c5023b0a1ee441561df9826c17: [Backport #18562]NARUSE, Yui
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(-)
2022-02-07merge revision(s) 2a76440fac62b: [Backport #18501]NARUSE, Yui
[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(-)
2022-02-07merge revision(s) 67f4729: [Backport #18556]NARUSE, Yui
[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* 2022-02-03 [ci skip]git
2022-02-03merge revision(s) ↵NARUSE, Yui
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(-)
2022-02-02Update bundled gems list at 2022-02-02git
2022-02-02Merge pull request #5482 from hsbt/rubygems-3-3-bundler-2-3Hiroshi SHIBATA
Merge RubyGems 3.3.x and Bundler 2.3.x
2022-02-02* 2022-02-02 [ci skip]git
2022-02-02Remove "Miscellaneous checks" from CINARUSE, Yui
It is expected to use on master branch
2022-02-01merge revision(s) ↵NARUSE, Yui
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(-)
2022-02-01Revert "Fix console.c usage of `rb_io_wait`."NARUSE, Yui
This reverts commit aa3b2c81c8de2e70bd100e92436f15c03523eaf7.
2022-02-01merge revision(s) 6a6227e0168b059c3ed34c9f0ace2e5dc2364221: [Backport #18517]NARUSE, Yui
Shifting zero always results in zero [Bug #18517] --- numeric.c | 2 ++ 1 file changed, 2 insertions(+)
2022-01-31merge revision(s) ↵NARUSE, Yui
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(-)
2022-01-31merge revision(s) f3c77bd480834f2835fe6fef5c0475336248dbde: [Backport #18489]NARUSE, Yui
Fix the placeholder subclass entry skipping [Bug #18489] --- class.c | 3 +-- test/ruby/test_module.rb | 9 +++++++++ 2 files changed, 10 insertions(+), 2 deletions(-)
2022-01-31Prefer `wait_readable` rather than `IO.select`.Samuel Williams
2022-01-31Fix incorrect minimum read length.Samuel Williams
2022-01-31Fix console.c usage of `rb_io_wait`.Samuel Williams
2022-01-31merge revision(s) ae5458f228a5477383e9c00425d85d50a3867817: [Backport #18475]NARUSE, Yui
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(+)
2022-01-31merge revision(s) 92630e2346a221fdfeaa484632938a06765bc6e5: [Backport #18468]NARUSE, Yui
[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(-)
2022-01-30merge revision(s) a79c59472df38297c246b27713c277f2edaefa7a: [Backport #18292]NARUSE, Yui
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(-)
2022-01-30merge revision(s) c764e368bd9c0487e6cc97f8a62e0e0e99a0d7c5: [Backport #18469]NARUSE, Yui
Fix default --jit-max-cache in `ruby --help` changed at 028f1887c2bfa50dcfc1b623470d6ab1b880fdde --- ruby.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
2022-01-30merge revision(s) 5917f49ad03cd3b2c13d3eea85c969a113b83bf8: [Backport #18436]NARUSE, Yui
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(-)
2022-01-30merge revision(s) 9e0a91d0640600f2dfd7fc1d5fae6667019c9ca5: [Backport #18458]NARUSE, Yui
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(-)
2022-01-30merge revision(s) 5414de4b6e4372af832e338f8eb7a9fe8de17c84: [Backport #18453]NARUSE, Yui
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(-)
2022-01-30merge revision(s) 0dc7816c4350683ccd020f5759eee4914de0085d: [Backport #18434]NARUSE, Yui
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(-)
2021-12-25Revert "Do not include external library sources into packages"v3_1_0NARUSE, Yui
This reverts commit a042043487eb4c7d39307b8e784ede1856455c3e. (cherry picked from commit 8325094177de60d365b2b5507488f0b53d11c736)
2021-12-25Prevent installing zlib libraryNARUSE, Yui
(cherry picked from commit 82c8acbcfd3197e19620dc6024d08c85ea99a05b)
2021-12-25Revert "make-snapshot: add -extlibs option"NARUSE, Yui
This reverts commit afa9d65d61857792508b1405835b07b78e24449c. It prevents installing libffi. (cherry picked from commit 1cc02078e503a18f6d1fcbd3e4d29c574895957d)
2021-12-25fix tool/format-releaseNARUSE, Yui
Pass ruby directory path (cherry picked from commit 05faa36028a0a00788e2416a91e0bba21bd6f6ad)
2021-12-25Update default gems list at 8247b193c0dd06db9ea56812954dda [ci skip]Nobuyoshi Nakada
(cherry picked from commit 1ad42f8a761b1f22464d5b15aac7ce994ecffc4b)
2021-12-25[ruby/io-console] bump up to 0.5.10Nobuyoshi Nakada
https://github.com/ruby/io-console/commit/806c65e22b (cherry picked from commit 8247b193c0dd06db9ea56812954dda8fed89458d)
2021-12-25[ruby/io-console] No longer support dead versionsNobuyoshi Nakada
https://github.com/ruby/io-console/commit/e9478509e9 (cherry picked from commit 9368fa6c3073d5fe4380a5e84eb59f7cec2ce62c)
2021-12-25NEWS: mention Time.new argument error moreNobuyoshi Nakada
Show an example of Time.new with perhaps unexpected results in earlier versions. (cherry picked from commit 14e550052be73ed35bfcbb0b6be696519ad7e092)
2021-12-25Suppress undef warnings for USE_RUBY_DEBUG_LOGNobuyoshi Nakada
(cherry picked from commit 975a6efd7ea144275d4774d18ff0f568c1a1dc97)
2021-12-25Define fallback RUBY_DEVEL to suppress undef warningsNobuyoshi Nakada
(cherry picked from commit 566bdaef318674c416494786da551021afb1b5d7)
2021-12-25Raise proper exception when month argument is not a nameNobuyoshi Nakada
https://bugs.ruby-lang.org/issues/17485#change-89871 (cherry picked from commit 0867b638aff9ec192ca420a44ffa5a77c892e8f2)
2021-12-25Fix the names of Thread::Queue and method for the cross-referenceNobuyoshi Nakada
(cherry picked from commit 42eb9bf37ac42cc792d619e28d153c164a5e6604)
2021-12-25NEWS: Put spaces to make Method and UnboundMethod linksNobuyoshi Nakada
(cherry picked from commit 30374b4fb77a1407e5ba8e98be03a92c4a317495)
2021-12-25Add IRB Improvements section to NEWS.mdaycabta
(cherry picked from commit dba24e6a1ae0d7dba313bb5f65a4be927bd6f236)
2021-12-25v3.1.0p0NARUSE, Yui