diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2021-01-03 00:05:00 -0800 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2021-01-03 00:05:38 -0800 |
commit | 4724bf856f30e8cc56795c0dc23b96e7ae68e874 (patch) | |
tree | 501baee61f328889e4d6010feb3308472424f55f /test | |
parent | 09ec8d686654462e55b2c60e2860754d1fa3435f (diff) |
Avoid hanging on --jit-wait after MJIT.pause
When a worker is stopped, nobody will JIT a method for you.
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_jit.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/ruby/test_jit.rb b/test/ruby/test_jit.rb index 3a38b1a998..61485c7479 100644 --- a/test/ruby/test_jit.rb +++ b/test/ruby/test_jit.rb @@ -1070,6 +1070,14 @@ class TestJIT < Test::Unit::TestCase end; end + def test_mjit_pause_wait + assert_eval_with_jit("#{<<~"begin;"}\n#{<<~"end;"}", stdout: '', success_count: 0, min_calls: 1) + begin; + RubyVM::MJIT.pause + proc {}.call + end; + end + def test_caller_locations_without_catch_table out, _ = eval_with_jit("#{<<~"begin;"}\n#{<<~"end;"}", min_calls: 1) begin; |