module RubyVM::RJIT - RDoc Documentation

# module RubyVM::RJIT

### Public Class Methods

enable() click to toggle source

Start JIT compilation after --rjit-disable.

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

enabled?() click to toggle source

Return true if RJIT is enabled.

    # File ruby_3_4_1/rjit.rb, line 3
    def self.enabled?
      Primitive.cexpr! 'RBOOL(rb_rjit_enabled)'
    end