ruby/yjit_hook.rb

10 строки
240 B
Ruby

# If YJIT is enabled, load the YJIT-only version of builtin methods
if defined?(RubyVM::YJIT) && RubyVM::YJIT.enabled?
RubyVM::YJIT.send(:call_yjit_hooks)
end
# Remove the helper defined in kernel.rb
module Kernel
undef :with_yjit
end