Actions
Bug #19464
closedYJIT miscompiles `BasicObject#__send__` to alias methods of `send`
Bug #19464:
YJIT miscompiles `BasicObject#__send__` to alias methods of `send`
Description
Symptoms first experienced and reported by users of the kt-paperclip
gem.
Reproducer:
klass = Class.new do
class << self
alias_method :my_send, :send
def bar = :ok
def foo = bar
end
end
with_break = -> { break klass.send(:my_send, :foo) }
wo_break = -> { klass.send(:my_send, :foo) }
31.times { with_break[]; wo_break[] }
Actions