[ruby-core:122276] [Ruby Bug#21310] YJIT optimization causes incorrect is_a? method evaluation