Skip to content

Commit aea4bf5

Browse files
authored
Support ZJIT versions that don't have RubyVM::ZJIT.enabled? (#403)
1 parent 91b923a commit aea4bf5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

harness/harness-common.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ def return_results(warmup_iterations, bench_iterations)
128128
}
129129

130130
# Collect JIT stats before loading any additional code.
131-
yjit_stats = RubyVM::YJIT.runtime_stats if defined?(RubyVM::YJIT) && RubyVM::YJIT.enabled?
132-
zjit_stats = RubyVM::ZJIT.stats if defined?(RubyVM::ZJIT) && RubyVM::ZJIT.enabled?
131+
yjit_stats = RubyVM::YJIT.runtime_stats if defined?(RubyVM::YJIT.enabled?) && RubyVM::YJIT.enabled?
132+
zjit_stats = RubyVM::ZJIT.stats if defined?(RubyVM::ZJIT.enabled?) && RubyVM::ZJIT.enabled?
133133

134134
# Collect our own peak mem usage as soon as reasonable after finishing the last iteration.
135135
rss = get_rss

0 commit comments

Comments
 (0)