summaryrefslogtreecommitdiff
path: root/test/ruby/test_lambda.rb
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2025-02-18 16:26:07 -0500
committerPeter Zhu <peter@peterzhu.ca>2025-02-18 17:09:28 -0500
commit0597cbcb1d895028e954db9711681e987c56729d (patch)
treed401b1b3106d398cf0524bdd7543b13fac082c51 /test/ruby/test_lambda.rb
parent27ba268b75bbe461460b31426e377b42d4935f70 (diff)
Fix crash for special constants in too complex generic ivars
We should skip reference updating for entries in too complex generic ivars that are special constants. This fixes the following crash: MAX_SHAPES = 0x80000 MAX_SHAPES.times do |i| o = [] o.instance_variable_set(:"@foo#{i}", 1) end o = [] o.instance_variable_set(:"@a", 123) GC.compact
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/12781
Diffstat (limited to 'test/ruby/test_lambda.rb')
0 files changed, 0 insertions, 0 deletions