Project

General

Profile

Actions

Feature #14878

closed

Add command line argument to deactivate JIT

Added by noahgibbs (Noah Gibbs) almost 6 years ago. Updated almost 6 years ago.

Status:
Closed
Target version:
[ruby-core:87671]

Description

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.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0