module RubyVM::RJIT

Public Class Methods

enabled?() click to toggle source

Return true if RJIT is enabled.

# File ruby_3_3_0_preview3/rjit.rb, line 3
def self.enabled?
  Primitive.cexpr! 'RBOOL(rb_rjit_enabled)'
end
resume() click to toggle source

Start generating JITed code again after –rjit-pause.

# File ruby_3_3_0_preview3/rjit.rb, line 8
def self.resume
  Primitive.cstmt! %{
    rb_rjit_call_p = true;
    return Qnil;
  }
end