
Issue #19464 has been reported by alanwu (Alan Wu). ---------------------------------------- Bug #19464: YJIT miscompiles `BasicObject#send` to alias methods of `send` https://bugs.ruby-lang.org/issues/19464 * Author: alanwu (Alan Wu) * Status: Open * Priority: Normal * Backport: 2.7: DONTNEED, 3.0: DONTNEED, 3.1: DONTNEED, 3.2: REQUIRED ---------------------------------------- Symptoms first experienced and [reported] by users of the `kt-paperclip` gem. Reproducer: ```ruby 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[] } ``` Will send a fix for review shortly. [reported]: https://github.com/Shopify/yjit/issues/306 -- https://bugs.ruby-lang.org/