Skip to content

Conversation

@pull
Copy link

@pull pull bot commented Nov 28, 2025

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 : )

qraqras and others added 3 commits November 28, 2025 15:38
[Bug #21718]

Otherwise objects that don't define it, but define a fairly liberal
`method_missing` method will run into errors that are hard to understand:

```ruby
class Foo
  def method_missing(name, ...)
    name
  end
end

p Foo.new.inspect
```

```
'Kernel#inspect': wrong argument type Symbol (expected Array) (TypeError)
	from ../test.rb:7:in '<main>'
```
Recently rb_vm_getinstancevariable was introduced exposing this method
to ZJIT. On clang specifically this ended up causing the compiler not to
inline into vm_exec_core and cause a significant performance regression
in optcarrot for the interpreter.

Co-authored-by: Luke Gruber <luke.gru@gmail.com>
@pull pull bot locked and limited conversation to collaborators Nov 28, 2025
@pull pull bot added the ⤵️ pull label Nov 28, 2025
@pull pull bot merged commit 8c70def into turkdevops:master Nov 28, 2025
1 check failed
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.

3 participants