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:
parent
c80edc9f98
commit
4e4b29b1a9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user