1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Make fiber_pool more conservative on platforms with limited address space.

We use COROUTINE_LIMITED_ADDRESS_SPACE to select platforms where address
space is 32-bits or less. Fiber pool implementation enables more book
keeping, and reduces upper limits, in order to minimise address space
utilisation.
This commit is contained in:
Samuel Williams 2019-07-16 16:11:55 +12:00
parent 385ea910fc
commit 001f187ed6
No known key found for this signature in database
GPG key ID: A0765423A44728FB
6 changed files with 23 additions and 12 deletions

View file

@ -16,6 +16,10 @@
#define COROUTINE __attribute__((noreturn)) void
#if INTPTR_MAX <= INT32_MAX
#define COROUTINE_LIMITED_ADDRESS_SPACE
#endif
// This stack copying implementation which uses a private stack for each coroutine, including the main one.
#define COROUTINE_PRIVATE_STACK