From 3378a1ccef8fe867c58b0df37a366c31d0a075a8 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Fri, 27 Nov 2020 23:46:10 -0800 Subject: [PATCH] Fix compactions.size for throttling 096f54428d changes the behavior for this kind of cases. --- test/ruby/test_jit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/ruby/test_jit.rb b/test/ruby/test_jit.rb index 024586671e..bec6d30dfc 100644 --- a/test/ruby/test_jit.rb +++ b/test/ruby/test_jit.rb @@ -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/)