diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2019-07-03 10:00:50 +0900 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2019-07-03 10:39:22 +0900 |
commit | 10cc6bc4d9276023db21db1014969381de813ff8 (patch) | |
tree | 1ffea18eb8ea65f088623a4d6a627ff94a61da98 /test/ruby | |
parent | 07e9a1d9986b36d9702b480de549c1301dd897e0 (diff) | |
download | ruby-10cc6bc4d9276023db21db1014969381de813ff8.tar.gz |
Just disable inlining with local varaible for now
This partially reverts commit 712a66b0741605f5b2db670a292b9bb352f8a716.
The previous fix made CI strange like:
http://ci.rvm.jp/results/trunk-vm-asserts@silicon-docker/2124178
Let me just downgrade the behavior for now and deal with it later.
[Bug #15971]
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_jit.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/ruby/test_jit.rb b/test/ruby/test_jit.rb index 66360731eb..08494cbbbb 100644 --- a/test/ruby/test_jit.rb +++ b/test/ruby/test_jit.rb @@ -11,6 +11,7 @@ class TestJIT < Test::Unit::TestCase IGNORABLE_PATTERNS = [ /\AJIT recompile: .+\n\z/, + /\AJIT inline: .+\n\z/, /\ASuccessful MJIT finish\n\z/, ] @@ -841,6 +842,19 @@ class TestJIT < Test::Unit::TestCase end; end + def test_block_handler_with_possible_frame_omitted_inlining + assert_eval_with_jit("#{<<~"begin;"}\n#{<<~"end;"}", stdout: "70.0\n70.0\n70.0\n", success_count: 2, min_calls: 2) + begin; + def multiply(a, b) + a *= b + end + + 3.times do + p multiply(7.0, 10.0) + end + end; + end + def test_program_counter_with_regexpmatch assert_eval_with_jit("#{<<~"begin;"}\n#{<<~"end;"}", stdout: "aa", success_count: 1) begin; |