summaryrefslogtreecommitdiff
path: root/yjit_hook.rb
blob: c4a89617f4c39fc346ae68397b2fc6d5f2ed7911 (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
module Kernel
  undef :with_yjit
end