diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2023-11-22 15:13:32 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-22 15:13:32 -0800 |
commit | 926bfc3bc0cfea976533c8eba8cda1fa298124e2 (patch) | |
tree | dd1e3e70003a7e7a95839749cbb13bae10816ce9 /bootstraptest | |
parent | 5672fb63d21ca8311513c44a82ffe5a0c8f55240 (diff) | |
download | ruby-926bfc3bc0cfea976533c8eba8cda1fa298124e2.tar.gz |
YJIT: Avoid a register spill on arm64 (#9014)
Diffstat (limited to 'bootstraptest')
-rw-r--r-- | bootstraptest/test_yjit.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bootstraptest/test_yjit.rb b/bootstraptest/test_yjit.rb index a7ef90ba74..f55c319707 100644 --- a/bootstraptest/test_yjit.rb +++ b/bootstraptest/test_yjit.rb @@ -4244,3 +4244,10 @@ assert_equal 'true', %q{ def entry = yield entry { true } } + +assert_normal_exit %q{ + ivars = 1024.times.map { |i| "@iv_#{i} = #{i}\n" }.join + Foo = Class.new + Foo.class_eval "def initialize() #{ivars} end" + Foo.new +} |