summaryrefslogtreecommitdiff
path: root/spec/ruby/core/array/insert_spec.rb
diff options
context:
space:
mode:
authorSamuel Williams <samuel.williams@oriontransfer.co.nz>2019-07-18 19:02:16 +1200
committerSamuel Williams <samuel.williams@oriontransfer.co.nz>2019-07-18 20:54:55 +1200
commit38e3c65a33aa7bcd4cee922487e259a8da699831 (patch)
treeef5b2e37e702f73dceac249026b76922b3d0bc16 /spec/ruby/core/array/insert_spec.rb
parent311007bf403160b978e015997ad5076a229290da (diff)
Improve `fiber_pool_expand` allocation strategy.
If `mmap` fails to allocate memory, try half the size, and so on. Limit FIBER_POOL_ALLOCATION_MAXIMUM_SIZE to 1024 stacks. In typical configurations this limits the memory mapped region to ~128MB per allocation.
Diffstat (limited to 'spec/ruby/core/array/insert_spec.rb')
0 files changed, 0 insertions, 0 deletions