Remove Kernel.with_yjit
class method
This commit is contained in:
parent
9508cf86de
commit
ad28f3a779
Notes:
git
2024-11-26 10:25:48 +00:00
@ -293,7 +293,7 @@ module Kernel
|
|||||||
|
|
||||||
# Internal helper for built-in initializations to define methods only when YJIT is enabled.
|
# Internal helper for built-in initializations to define methods only when YJIT is enabled.
|
||||||
# This method is removed in yjit_hook.rb.
|
# This method is removed in yjit_hook.rb.
|
||||||
def with_yjit(&block) # :nodoc:
|
private def with_yjit(&block) # :nodoc:
|
||||||
if defined?(RubyVM::YJIT)
|
if defined?(RubyVM::YJIT)
|
||||||
RubyVM::YJIT.send(:add_yjit_hook, block)
|
RubyVM::YJIT.send(:add_yjit_hook, block)
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user