ruby/yjit_hook.rb
2024-11-27 09:04:07 -08:00

10 lines
239 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
class Module
undef :with_yjit
end