From 4e4b29b1a9e534554594b6f18fc0bdc462638934 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Thu, 17 Nov 2022 14:00:25 -0800 Subject: [PATCH] YJIT: Make the code GC test stabler The first `add_pages` call shouldn't hit Code GC yet; otherwise `compiles` returns false. With the increased code size in runtime_stats itself, it sometimes hits Code GC too early, at least in arm64 that has a large code size. --- test/ruby/test_yjit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/ruby/test_yjit.rb b/test/ruby/test_yjit.rb index fab8768a7e..9ab058d97b 100644 --- a/test/ruby/test_yjit.rb +++ b/test/ruby/test_yjit.rb @@ -905,7 +905,7 @@ class TestYJIT < Test::Unit::TestCase end } - return :not_paged1 unless add_pages(500) # use some pages + return :not_paged1 unless add_pages(250) # use some pages return :broken_resume1 if fiber.resume != 0 # leave an on-stack code as well add_pages(2000) # use a whole lot of pages to run out of 1MiB