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.
This commit is contained in:
Takashi Kokubun 2022-11-17 14:00:25 -08:00
parent c80edc9f98
commit 4e4b29b1a9
No known key found for this signature in database
GPG Key ID: 6FFC433B12EE23DD

View File

@ -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