diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2021-08-12 22:54:40 -0700 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2021-08-12 23:11:38 -0700 |
commit | b3f8c491efefc0461ab225d062f6c64286498609 (patch) | |
tree | 5d3fbb4fe76d37f91bafbdb4b5fff9ce28d8f7ce /test/ruby/test_jit.rb | |
parent | 1a16940291301ace49cba0f37154a67033ab27c0 (diff) |
Print JIT cancel when all JIT-ed code is cancelled
Diffstat (limited to 'test/ruby/test_jit.rb')
-rw-r--r-- | test/ruby/test_jit.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/ruby/test_jit.rb b/test/ruby/test_jit.rb index 5b79f8c0ea..d6306dcfc9 100644 --- a/test/ruby/test_jit.rb +++ b/test/ruby/test_jit.rb @@ -10,6 +10,7 @@ class TestJIT < Test::Unit::TestCase IGNORABLE_PATTERNS = [ /\AJIT recompile: .+\n\z/, /\AJIT inline: .+\n\z/, + /\AJIT cancel: .+\n\z/, /\ASuccessful MJIT finish\n\z/, ] MAX_CACHE_PATTERNS = [ @@ -1100,6 +1101,14 @@ class TestJIT < Test::Unit::TestCase end; end + def test_cancel_by_tracepoint + assert_eval_with_jit("#{<<~"begin;"}\n#{<<~"end;"}", success_count: 0, min_calls: 2) + begin; + TracePoint.new(:line) {}.enable + 2.times {} + end; + end + def test_caller_locations_without_catch_table out, _ = eval_with_jit("#{<<~"begin;"}\n#{<<~"end;"}", min_calls: 1) begin; |