Issue #14878 has been updated by k0kubun (Takashi Kokubun).


Now --enable-jit, --enable=jit, --disable-jit, --disable=jit are available.

----------------------------------------
Feature #14878: Add command line argument to deactivate JIT
https://bugs.ruby-lang.org/issues/14878#change-73003

* Author: noahgibbs (Noah Gibbs)
* Status: Closed
* Priority: Normal
* Assignee: k0kubun (Takashi Kokubun)
* Target version: 2.6
----------------------------------------
For Ruby 2.6, JIT is off by default. But if a particular application can't use JIT for some reason, it may want to explicitly turn JIT off, even for later Ruby versions that have JIT on by default.

It would be useful to have a --jit-disable command line option to turn JIT off explicitly for later Ruby versions. This option should do nothing in Ruby 2.6.

Why turn JIT off? Some possible reasons:

* benchmarking
* no compiler installed
* known compiler/library bug in non-Ruby system software
* short program run-time so JIT won't help
* very tight memory constraints, don't want to start a compiler process
* read-only file system so you can't write .c files

I'm not married to the name "--jit-disable". I'd be fine with "--no-jit" or "--disable=jit", etc. But there should be an option to disable JIT in future Ruby versions.




-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>