summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2022-11-03 10:41:35 -0700
committerGitHub <noreply@github.com>2022-11-03 13:41:35 -0400
commitea77aa2fd0899820752df7de6077a3b847a20aee (patch)
tree27441c1f4659e5b51963333d7afa80097237dfa3 /test
parent611b5e7f40dd7f0ee00df7981dc60890eeb2f315 (diff)
YJIT: Make Code GC metrics available for non-stats builds (#6665)
Notes
Notes: Merged-By: maximecb <maximecb@ruby-lang.org>
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_yjit.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/ruby/test_yjit.rb b/test/ruby/test_yjit.rb
index 57a60db89b..1a564889af 100644
--- a/test/ruby/test_yjit.rb
+++ b/test/ruby/test_yjit.rb
@@ -837,7 +837,7 @@ class TestYJIT < Test::Unit::TestCase
return :not_compiled2 unless compiles { nil } # should be JITable again
code_gc_count = RubyVM::YJIT.runtime_stats[:code_gc_count]
- return :"code_gc_#{code_gc_count}" if code_gc_count && code_gc_count != 2
+ return :"code_gc_#{code_gc_count}" if code_gc_count != 2
:ok
RUBY
@@ -858,7 +858,7 @@ class TestYJIT < Test::Unit::TestCase
return :broken_resume2 if fiber.resume != 0 # The code should be still callable
code_gc_count = RubyVM::YJIT.runtime_stats[:code_gc_count]
- return :"code_gc_#{code_gc_count}" if code_gc_count && code_gc_count != 1
+ return :"code_gc_#{code_gc_count}" if code_gc_count != 1
:ok
RUBY
@@ -890,7 +890,7 @@ class TestYJIT < Test::Unit::TestCase
return :not_paged4 unless add_pages(100) # check everything still works
code_gc_count = RubyVM::YJIT.runtime_stats[:code_gc_count]
- return :"code_gc_#{code_gc_count}" if code_gc_count && code_gc_count != 3
+ return :"code_gc_#{code_gc_count}" if code_gc_count != 3
:ok
RUBY
@@ -912,7 +912,7 @@ class TestYJIT < Test::Unit::TestCase
return :broken_resume2 if fiber.resume != 0 # on-stack code should be callable
code_gc_count = RubyVM::YJIT.runtime_stats[:code_gc_count]
- return :"code_gc_#{code_gc_count}" if code_gc_count && code_gc_count == 0
+ return :"code_gc_#{code_gc_count}" if code_gc_count == 0
:ok
RUBY