Skip to content

[pull] master from ruby:master - #1244

Merged
pull[bot] merged 6 commits into
turkdevops:masterfrom
ruby:master
Jul 25, 2026
Merged

[pull] master from ruby:master#1244
pull[bot] merged 6 commits into
turkdevops:masterfrom
ruby:master

Conversation

@pull

@pull pull Bot commented Jul 25, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

nobu and others added 6 commits July 25, 2026 16:01
This reverts commits:

* fa055b6
  Allow specifying the position to start search from in Array#index
  and Array#rindex

* 33db313.
  Add offset specs for `Array#index` and `rindex`
The documentation says "Frozen strings and read-only files create
read-only buffers", but this omits the most common case: a buffer
created by IO::Buffer.for without a block is always read-only, even
when the source string is not frozen.

This is because the no-block form of IO::Buffer.for uses an internal
frozen copy of the string as the buffer source (see rb_io_buffer_type_for,
which passes RB_IO_BUFFER_READONLY unconditionally), and its call-seq is
already documented as `IO::Buffer.for(string) -> readonly io_buffer`.

    p IO::Buffer.for("test").readonly?        # => true  (not frozen)
    p IO::Buffer.for("test") {|b| b.readonly? } # => false (block form)
    p IO::Buffer.new(4).readonly?             # => false
These two optimization macros in `internal/vm.h` were "temporarily"
removed in commit f228692 for [Feature #16614].  However, since
they have not been restored for over six years, the corresponding
guards in `internal.h` can now be considered obsolete.
Forwarding callees keep call information, not arguments, in their
local table.  Mapping caller argument types to those slots could make
YJIT carry a `CString` type for an uninitialized `nil` local and fail
context verification.
Skip local argument type propagation for forwarding callees and cover
the `defined?` delegator shape with context verification and code GC
enabled.
@pull pull Bot locked and limited conversation to collaborators Jul 25, 2026
@pull pull Bot added the ⤵️ pull label Jul 25, 2026
@pull
pull Bot merged commit f8b0105 into turkdevops:master Jul 25, 2026
1 of 3 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants