123456789_123456789_123456789_123456789_123456789_

Module: RubyVM::MJIT

Relationships & Source Files
Defined in: mjit_c.rb,
mjit.rb,
mjit.rb

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

Class Attribute Summary

Class Method Summary

Class Attribute Details

.enabled?Boolean (readonly)

Return true if MJIT is enabled.

[ GitHub ]

  
# File 'mjit.rb', line 3

def self.enabled?
  Primitive.cexpr! 'RBOOL(mjit_enabled)'
end

Class Method Details

.pause(wait: true)

Stop generating JITed code.

[ GitHub ]

  
# 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.

[ GitHub ]

  
# File 'mjit.rb', line 13

def self.resume
  Primitive.cexpr! 'mjit_resume()'
end