Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
RubyVM::YJIT.enabled?
enabled?
yjit.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/yjit.rb, line 12
def self.enabled?
Primitive.cexpr! 'RBOOL(rb_yjit_enabled_p)'
end
Check if YJIT is enabled.
See also
.enable
.format_number
.dump_exit_locations
.format_number_pct
also in
4.1 · 4.0 · 3.4 · 3.2