summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2025-12-19Skip RBS Ractor test on WindowsNobuyoshi Nakada
It seems hunging up.
2025-12-19Adjust Stdlib section with 4.0.0 and added reference of RubyGems release notes.Hiroshi SHIBATA
2025-12-19Fix: Specifying 0 should cause an immediate timeout (#15641)Misaki Shioi
This change fixes a bug in which specifying 0 for timeout-related options (such as the `timeout` option of `Addrinfo.getaddrinfo`) incorrectly results in an infinite wait. (This change overwrites https://github.com/ruby/ruby/pull/15626 .)
2025-12-19Terminate `args_tail_basic` rule with a semicolonyui-knk
Semicolon is optional however it clarifies the end of the rule.
2025-12-19Just passing FDs does not need to create IO objectsNobuyoshi Nakada
2025-12-19Extract `Test::JobServer` moduleNobuyoshi Nakada
A placeholder to handle GNU make jobserver option. spec/default.mspec didn't handle the jobserver using a FIFO.
2025-12-19Fix: Do not check open_timeout twice (#15626)Misaki Shioi
2025-12-19NEWS.md: Sort items in alphabetical orderYusuke Endoh
2025-12-19Update bundled gems list as of 2025-12-19git
2025-12-19Fix rbs test failure caused by minitest-6 (#15643)Soutaro Matsumoto
* Fix rbs test failure caused by minitest6 * Bundle minitest-6.0.0
2025-12-18add news for pack / unpack directivesAaron Patterson
2025-12-19Update default gems list at 5c0c0dd8737c8225f0ebcf0eaf3fb8 [ci skip]git
2025-12-18[ruby/prism] Bump to v1.7.0Kevin Newton
https://github.com/ruby/prism/commit/21c499d6e4
2025-12-18[ruby/prism] Reject `p(p a, &block => value)` and similarEarlopain
Redo of https://github.com/ruby/prism/pull/3669 with more tests https://github.com/ruby/prism/commit/48b403ea79
2025-12-18[ruby/prism] Add Ruby 4.1 as a version specifierEarlopain
https://github.com/ruby/prism/commit/138db9ccc4
2025-12-18[ruby/prism] Fix assertions in location_test.rbBenoit Daloze
* assert_raise's 2nd argument is the failure message, shown when the expected exception is not raised. It's not the expected message. See https://github.com/test-unit/test-unit/issues/347 https://github.com/ruby/prism/commit/e3df994d47
2025-12-18Update ArgumentError message for Ractor.selectJohn Hawthorn
2025-12-18[DOC] Harmonize lt methodsBurdette Lamar
2025-12-18[DOC] Update NEWS for implementation improvementsJohn Hawthorn
2025-12-18[DOC] Various improvements to NEWSJohn Hawthorn
2025-12-18[DOC] Update ractor.rb docsJohn Hawthorn
2025-12-18[DOC] Update ractor.c docsJohn Hawthorn
2025-12-18[DOC] Russian strings should look RussianBurdetteLamar
2025-12-18Add support for signed and unsigned LEB128 to pack/unpack.Aaron Patterson
This commit adds a new pack format command `R` and `r` for unsigned and signed LEB128 encoding. The "r" mnemonic is because this is a "vaRiable" length encoding scheme. LEB128 is used in various formats including DWARF, WebAssembly, MQTT, and Protobuf. [Feature #21785]
2025-12-18JIT: Move EC offsets to jit_bindgen_constantsJohn Hawthorn
Co-authored-by: Alan Wu <alanwu@ruby-lang.org>
2025-12-18Co-authored-by: Luke Gruber <luke.gru@gmail.com>John Hawthorn
Co-authored-by: Alan Wu <alanwu@ruby-lang.org> YJIT: Support calling bmethods in Ractors Co-authored-by: Luke Gruber <luke.gru@gmail.com> Suggestion from Alan
2025-12-18YJIT: Support calling bmethods in RactorsJohn Hawthorn
Co-authored-by: Luke Gruber <luke.gru@gmail.com>
2025-12-18Store ractor_id directly on ECJohn Hawthorn
This is easier to access as ec->ractor_id instead of pointer-chasing through ec->thread->ractor->ractor_id Co-authored-by: Luke Gruber <luke.gru@gmail.com>
2025-12-18Check for NULL fields in TYPEDDATA memsize functions (#15633)Luke Gruber
Some TYPEDDATA objects allocate struct fields using the GC right after they get created, and in that case the VM can try to perform a GC and join a barrier if another ractor started one. If we're dumping the heap in another ractor, this acquires a barrier and it will call the `rb_obj_memsize` function on this object. We can't assume these struct fields are non-null. This also goes for C extensions, which may cause problems with heap dumping from a ractor if their memsize functions aren't coded correctly to check for NULL fields. Because dumping the heap from a ractor is likely a rare scenario and it has only recently been introduced, we'll have to see how this works in practice and if it causes bugs.
2025-12-18[DOC] small improvements to ractor class docs (#15584)Luke Gruber
* Ractor.yield no longer exists * Ractor.shareable_proc returns a copy of the given proc * Improve wording for monitoring/unmonitoring ports
2025-12-18thread_sync.c: rename mutex_trylock internal functionJean Boussier
[Bug #21793] To fix a naming conflict on solaris.
2025-12-18thread_sync.c: declare queue_data_type as parent of szqueue_data_type.Jean Boussier
Allows to remove some duplicated code like szqueue_length, etc.
2025-12-18thread_sync.c: simplify `check_array`Jean Boussier
If the queue was allocated without calling initialize, `ary` will be `0`.
2025-12-18thread_sync.c: eliminate GET_EC() from queue_do_popJean Boussier
We receive the ec as argument, it's much cheaper to pass it around that to look it up again.
2025-12-18Fix env debug assertion failure w/ Ractors+JITsJohn Hawthorn
Previously when using a JIT and Ractors at the same time with debug assertions turned on this could rarely fail with: vm_core.h:1448: Assertion Failed: VM_ENV_FLAGS:FIXNUM_P(flags) When using Ractors, any time the VM lock is acquired, that may join a barrier as another Ractor initiates GC. This could be made to happen reliably by replacing the invalidation with a call to rb_gc(). This assertion failure happens because VM_STACK_ENV_WRITE(ep, 0, (VALUE)env); Is setting VM_ENV_DATA_INDEX_FLAGS to the environment, which is not a valid set of flags (it should be a fixnum). Although we update cfp->ep, rb_execution_context_mark will also mark the PREV_EP, and until the recursive calls to vm_make_env_each all finish the "next" ep may still be pointing to the stack env we've just escaped. I'm not completely sure why we need to store this on the stack - why is setting cfp->ep not enough? I'm also not sure why rb_execution_context_mark needs to mark the prev_ep.
2025-12-18Remove assertion in encoded_iseq_trace_instrument (#15616)Luke Gruber
`encoded_iseq_trace_instrument` is safe to call in a ractor if the iseq is new. In that case, the VM lock is not taken. This assertion was added in 4fb537b1ee28bb37dbe551ac65c279d436c756bc.
2025-12-18thread_sync: Mutex keep `rb_thread_t *` instead of `VALUE`Jean Boussier
We never need the actual thread object and this avoid any issue if the thread object is ever moved.
2025-12-18make rb_singleton_class ractor safe (#15591)Luke Gruber
Since singleton classes are created lazily, we need to make sure that we lock around their creation. Unfortunately, that means we need to lock around every shareable object's call to `singleton_class`, including classes and modules.
2025-12-18Bump RDoc to 7.0.1 (#15628)Stan Lo
This improves several enhancements to the Aliki theme. And since Aliki also became the default theme, we don't need to specify the generator name anymore.
2025-12-18Update default gems list at 0e85881e0cded6ec82ef105b5ff2d0 [ci skip]git
2025-12-18[ruby/delegate] v0.6.1Hiroshi SHIBATA
https://github.com/ruby/delegate/commit/90ffceb6d6
2025-12-18Reapply "Merge pull request #52 from ruby/revert-49"Hiroshi SHIBATA
This reverts commit 02e4b58b615d0dd83a6af5cd7c2b8861724011ee.
2025-12-18Revert "Allow use of DelegateClass in ractor"Hiroshi SHIBATA
This reverts commit 6e0f2b31f0f4a2a942f3c1daad1bb64852fe6815.
2025-12-18[ruby/delegate] v0.6.0Hiroshi SHIBATA
https://github.com/ruby/delegate/commit/aef34e8c8b
2025-12-18Allow use of DelegateClass in ractorLuke Gruber
Use `eval` instead of `define_method` when defining delegate methods for `DelegateClass`.
2025-12-18[ruby/delegate] Reapply "Merge pull request #46 from byroot/use-forward-send"Hiroshi SHIBATA
This reverts commit https://github.com/ruby/delegate/commit/fc2bd0498af0. https://github.com/ruby/delegate/commit/7d5c1e0842 Co-authored-by: Jean Boussier <byroot@ruby-lang.org>
2025-12-18[ruby/delegate] v0.5.0Hiroshi SHIBATA
https://github.com/ruby/delegate/commit/fa35b20eca
2025-12-18[ruby/delegate] Allow use of DelegateClass in ractorsLuke Gruber
Tempfile uses DelegateClass and Tempfile should be able to be used by different ractors. https://github.com/ruby/delegate/commit/cad194260b
2025-12-18RBOOL is unnecessary in C boolean contextNobuyoshi Nakada
Fix a `-Wint-in-bool-context` warning. ``` proc.c:688:33: warning: '?:' using integer constants in boolean context [-Wint-in-bool-context] 688 | if (RBOOL(get_local_variable_ptr(&env, idItImplicit, FALSE))) { ```
2025-12-18Bump github.com/microsoft/vcpkg from master to 2025.12.12dependabot[bot]
Bumps [github.com/microsoft/vcpkg](https://github.com/microsoft/vcpkg) from master to 2025.12.12. This release includes the previously tagged commit. - [Release notes](https://github.com/microsoft/vcpkg/releases) - [Commits](https://github.com/microsoft/vcpkg/compare/74e6536215718009aae747d86d84b78376bf9e09...84bab45d415d22042bd0b9081aea57f362da3f35) --- updated-dependencies: - dependency-name: github.com/microsoft/vcpkg dependency-version: 2025.12.12 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>