summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2023-11-30 18:54:32 -0500
committerAlan Wu <XrXr@users.noreply.github.com>2023-11-30 19:19:43 -0500
commit5888a16a125e573c1749000b343d41db76289c15 (patch)
treea19f1dda26432be4f39c52f73c02b3b4a1212fa0 /test/ruby
parent59f31a66180b8b118c93cdb3dad20e467b18f7fc (diff)
YJIT: Use `stats[:live_page_count]`, renamed from :compiled_page_count
Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com>
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_yjit.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_yjit.rb b/test/ruby/test_yjit.rb
index 132bb14a49..43f421f20a 100644
--- a/test/ruby/test_yjit.rb
+++ b/test/ruby/test_yjit.rb
@@ -1435,9 +1435,9 @@ class TestYJIT < Test::Unit::TestCase
end
def add_pages(num_jits)
- pages = RubyVM::YJIT.runtime_stats[:compiled_page_count]
+ pages = RubyVM::YJIT.runtime_stats[:live_page_count]
num_jits.times { return false unless eval('compiles { nil.to_i }') }
- pages.nil? || pages < RubyVM::YJIT.runtime_stats[:compiled_page_count]
+ pages.nil? || pages < RubyVM::YJIT.runtime_stats[:live_page_count]
end
RUBY
end