Module: RubyVM::MJIT

Defined in:
vm.c

Class Method Summary collapse

Class Method Details

.enabled?Boolean

Returns true if JIT is enabled

Returns:

  • (Boolean)


2863
2864
2865
2866
2867
# File 'vm.c', line 2863

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

.pauseObject



2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
# File 'vm.c', line 2869

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



2886
2887
2888
2889
2890
# File 'vm.c', line 2886

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