summaryrefslogtreecommitdiff
path: root/yjit_hook.rb
blob: 8f0f38aaf1f5353108739d95394ad9ddf71345c7 (plain)
1
2
3
4
5
6
7
8
9
# 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