Module: RubyVM::MJIT
| Relationships & Source Files | |
| Defined in: | vm.c | 
Overview
Provides access to the ::Method JIT compiler of MRI. Of course, this module is MRI specific.
Class Attribute Summary
- 
    
      .enabled?  ⇒ Boolean 
    
    readonly
    Returns true if JIT is enabled. 
Class Method Summary
Class Attribute Details
    .enabled?  ⇒ Boolean  (readonly)
  
Returns true if JIT is enabled
# File 'vm.c', line 3227
static VALUE
mjit_enabled_p(VALUE _)
{
    return mjit_enabled ? Qtrue : Qfalse;
}
  Class Method Details
.pause
[ GitHub ]# File 'vm.c', line 3233
static VALUE
mjit_pause_m(int argc, VALUE *argv, RB_UNUSED_VAR(VALUE self))
{
    VALUE options = Qnil;
    VALUE wait = Qtrue;
    rb_scan_args(argc, argv, "0:", &options);
    if (!NIL_P(options)) {
        static ID keyword_ids[1];
        if (!keyword_ids[0])
            keyword_ids[0] = rb_intern("wait");
        rb_get_kwargs(options, keyword_ids, 0, 1, &wait);
    }
    return mjit_pause(RTEST(wait));
}
  .resume
[ GitHub ]# File 'vm.c', line 3250
static VALUE
mjit_resume_m(VALUE _)
{
    return mjit_resume();
}