From ea77aa2fd0899820752df7de6077a3b847a20aee Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Thu, 3 Nov 2022 10:41:35 -0700 Subject: YJIT: Make Code GC metrics available for non-stats builds (#6665) --- test/ruby/test_yjit.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test') 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 -- cgit v1.2.3