Module: RubyVM::MJIT
Overview
Part of this file is generated by tool/mjit/bindgen.rb. Run make mjit-bindgen
to update code between “MJIT bindgen begin” and “MJIT bindgen end”.
Constant Summary
-
C =
Internal use only
forward declaration for ruby_vm/mjit/compiler
Object.new
Class Attribute Summary
-
.enabled? ⇒ Boolean
readonly
Return true if
MJIT
is enabled.
Class Method Summary
-
.pause(wait: true)
Stop generating JITed code.
-
.resume
Start generating JITed code again after pause.
Class Attribute Details
.enabled? ⇒ Boolean
(readonly)
Return true if MJIT
is enabled.
# File 'mjit.rb', line 3
def self.enabled? Primitive.cexpr! 'RBOOL(mjit_enabled)' end
Class Method Details
.pause(wait: true)
Stop generating JITed code.
# File 'mjit.rb', line 8
def self.pause(wait: true) Primitive.cexpr! 'mjit_pause(RTEST(wait))' end
.resume
Start generating JITed code again after pause.
# File 'mjit.rb', line 13
def self.resume Primitive.cexpr! 'mjit_resume()' end