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:
parent
385ea910fc
commit
001f187ed6
6 changed files with 23 additions and 12 deletions
|
@ -11,6 +11,7 @@
|
|||
#include <string.h>
|
||||
|
||||
#define COROUTINE __attribute__((noreturn, fastcall)) void
|
||||
#define COROUTINE_LIMITED_ADDRESS_SPACE
|
||||
|
||||
enum {COROUTINE_REGISTERS = 4};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue