Skip to content

Fix version output to reflect current runtime#9228

Merged
headius merged 1 commit intojruby:masterfrom
headius:jit_mode_version_string
Feb 10, 2026
Merged

Fix version output to reflect current runtime#9228
headius merged 1 commit intojruby:masterfrom
headius:jit_mode_version_string

Conversation

@headius
Copy link
Member

@headius headius commented Feb 10, 2026

The JIT mode may change from the global property value by passing the -X-C flag to JRuby or by modifying the compile mode in RubyInstanceConfig. The version output did not reflect this, and would still show +jit when one of these two mechanisms was used to disable JIT.

This change adds a version of this output that can use a config object to determine whether JIT is actually enabled.

@headius headius added this to the JRuby 10.0.4.0 milestone Feb 10, 2026
The JIT mode may change from the global property value by passing
the -X-C flag to JRuby or by modifying the compile mode in
RubyInstanceConfig. The version output did not reflect this, and
would still show `+jit` when one of these two mechanisms was used
to disable JIT.

This change adds a version of this output that can use a config
object to determine whether JIT is actually enabled.

Fixes jruby#9227
@headius headius force-pushed the jit_mode_version_string branch from 9bf28ec to f4a35b4 Compare February 10, 2026 20:15
@headius headius linked an issue Feb 10, 2026 that may be closed by this pull request
@headius headius merged commit 8bbf037 into jruby:master Feb 10, 2026
79 checks passed
@headius headius deleted the jit_mode_version_string branch February 11, 2026 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Version output may not accurately represent JIT mode

1 participant