1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix compactions.size for throttling

096f54428d changes the behavior for this kind of cases.
This commit is contained in:
Takashi Kokubun 2020-11-27 23:46:10 -08:00
parent 096f54428d
commit 3378a1ccef
No known key found for this signature in database
GPG key ID: 6FFC433B12EE23DD

View file

@ -695,7 +695,7 @@ class TestJIT < Test::Unit::TestCase
# On --jit-wait, when the number of JIT-ed code reaches --jit-max-cache,
# it should trigger compaction.
unless RUBY_PLATFORM.match?(/mswin|mingw/) # compaction is not supported on Windows yet
assert_equal(3, compactions.size, debug_info)
assert_equal(1, compactions.size, debug_info)
end
if RUBY_PLATFORM.match?(/mswin/)