Skip to content

Commit 5888a16

Browse files
XrXrk0kubun
andcommitted
YJIT: Use stats[:live_page_count], renamed from :compiled_page_count
Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com>
1 parent 59f31a6 commit 5888a16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/ruby/test_yjit.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1435,9 +1435,9 @@ def compiles(&block)
14351435
end
14361436
14371437
def add_pages(num_jits)
1438-
pages = RubyVM::YJIT.runtime_stats[:compiled_page_count]
1438+
pages = RubyVM::YJIT.runtime_stats[:live_page_count]
14391439
num_jits.times { return false unless eval('compiles { nil.to_i }') }
1440-
pages.nil? || pages < RubyVM::YJIT.runtime_stats[:compiled_page_count]
1440+
pages.nil? || pages < RubyVM::YJIT.runtime_stats[:live_page_count]
14411441
end
14421442
RUBY
14431443
end

0 commit comments

Comments
 (0)