diff options
author | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2019-07-16 16:11:55 +1200 |
---|---|---|
committer | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2019-07-18 20:54:55 +1200 |
commit | 001f187ed6539f320421d8893d2f3c8f584cc3a5 (patch) | |
tree | ce525733ca95a920083874cc50ee47084f1e687a /coroutine/arm32 | |
parent | 385ea910fc28f0e46c72669a260e44d4f3f37d9e (diff) | |
download | ruby-001f187ed6539f320421d8893d2f3c8f584cc3a5.tar.gz |
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.
Diffstat (limited to 'coroutine/arm32')
-rw-r--r-- | coroutine/arm32/Context.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/coroutine/arm32/Context.h b/coroutine/arm32/Context.h index 27f97908bc..e29fe1bb63 100644 --- a/coroutine/arm32/Context.h +++ b/coroutine/arm32/Context.h @@ -11,6 +11,7 @@ #include <string.h> #define COROUTINE __attribute__((noreturn)) void +#define COROUTINE_LIMITED_ADDRESS_SPACE enum {COROUTINE_REGISTERS = 8}; |