Module: RubyVM::MJIT

Defined in:
vm.c

Class Method Summary collapse

Class Method Details

.enabled?Boolean

Returns true if JIT is enabled

Returns:

  • (Boolean)


2850
2851
2852
2853
2854
# File 'vm.c', line 2850

static VALUE
mjit_enabled_p(VALUE _)
{
    return mjit_enabled ? Qtrue : Qfalse;
}

.pauseObject



2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
# File 'vm.c', line 2856

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));
}

.resumeObject



2873
2874
2875
2876
2877
# File 'vm.c', line 2873

static VALUE
mjit_resume_m(VALUE _)
{
    return mjit_resume();
}