diff options
| author | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2019-07-18 19:02:16 +1200 |
|---|---|---|
| committer | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2019-07-18 20:54:55 +1200 |
| commit | 38e3c65a33aa7bcd4cee922487e259a8da699831 (patch) | |
| tree | ef5b2e37e702f73dceac249026b76922b3d0bc16 /spec/ruby/core/array/shared/replace.rb | |
| parent | 311007bf403160b978e015997ad5076a229290da (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/shared/replace.rb')
0 files changed, 0 insertions, 0 deletions
