diff options
author | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-08-09 11:39:07 +0000 |
---|---|---|
committer | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-08-09 11:39:07 +0000 |
commit | 2e003f6c873e073448e64ca4a644ce4e92a10182 (patch) | |
tree | 2d435c02f3f16846770619eda5f5eaedb1742290 /mjit.c | |
parent | 212a77ed46d73af3600756247f7c30d6c270eff1 (diff) |
process.c: don't wait JIT queue flush on rb_f_exec
This wasn't intended in r64253.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64254 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'mjit.c')
-rw-r--r-- | mjit.c | 17 |
1 files changed, 3 insertions, 14 deletions
@@ -1782,19 +1782,8 @@ stop_worker(void) /* Stop JIT-compiling methods but compiled code is kept available. */ VALUE -mjit_pause(int argc, VALUE *argv, RB_UNUSED_VAR(VALUE self)) +mjit_pause(int wait_p) { - 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); - } - if (!mjit_enabled) { rb_raise(rb_eRuntimeError, "MJIT is not enabled"); } @@ -1802,8 +1791,8 @@ mjit_pause(int argc, VALUE *argv, RB_UNUSED_VAR(VALUE self)) return Qfalse; } - /* Flush all queued units with `wait: true` (default) */ - if (RTEST(wait)) { + /* Flush all queued units with no option or `wait: true` */ + if (wait_p) { struct timeval tv; tv.tv_sec = 0; tv.tv_usec = 1000; |