summaryrefslogtreecommitdiff
path: root/ext/fiddle/lib/fiddle/value.rb
diff options
context:
space:
mode:
authorAaron Patterson <tenderlove@ruby-lang.org>2023-03-17 11:39:35 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2023-03-22 08:46:12 -0700
commit1a9e2d20e2c66933f8eb891a1ee85fae6015fcf1 (patch)
tree281d6536edd16ee9ece6971462f27fcf70151550 /ext/fiddle/lib/fiddle/value.rb
parente340eb2106544dffe909104df1ff61236f70f280 (diff)
Fix shape allocation limitsHEADmaster
We can only allocate enough shapes to fit in the shape buffer. MAX_SHAPE_ID was based on the theoretical maximum number of shapes we could have, not on the amount of memory we can actually consume. This commit changes the MAX_SHAPE_ID to be based on the amount of memory we're allowed to consume. Co-Authored-By: Jemma Issroff <jemmaissroff@gmail.com>
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/7556
Diffstat (limited to 'ext/fiddle/lib/fiddle/value.rb')
0 files changed, 0 insertions, 0 deletions