Project

General

Profile

Actions

Feature #18440

closed

YJIT is enabled if any YJIT tuning options are set

Added by georgeclaghorn (George Claghorn) almost 3 years ago. Updated about 1 year ago.

Status:
Feedback
Assignee:
-
Target version:
-
[ruby-core:106836]

Description

I was testing YJIT in a Rails app with RUBYOPT="--yjit --yjit-exec-mem-size=32". I saw some weird issues around Rails view caching, so I attempted to temporarily disable YJIT by removing --yjit and leaving the tuning options in place (RUBYOPT="--yjit-exec-mem-size=32"). However, YJIT remained enabled until I also removed --yjit-exec-mem-size=32.

$ ruby -e 'puts RubyVM::YJIT.runtime_stats.inspect'
nil

$ ruby --yjit-exec-mem-size -e 'puts RubyVM::YJIT.runtime_stats.inspect'
{:inline_code_size=>378495, :outlined_code_size=>311079}

I expected removing --yjit to disable YJIT and was surprised by this.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0