aboutsummaryrefslogtreecommitdiffstats
path: root/coroutine/x86
diff options
context:
space:
mode:
authorSamuel Williams <samuel.williams@oriontransfer.co.nz>2019-07-16 16:11:55 +1200
committerSamuel Williams <samuel.williams@oriontransfer.co.nz>2019-07-18 20:54:55 +1200
commit001f187ed6539f320421d8893d2f3c8f584cc3a5 (patch)
treece525733ca95a920083874cc50ee47084f1e687a /coroutine/x86
parent385ea910fc28f0e46c72669a260e44d4f3f37d9e (diff)
downloadruby-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/x86')
-rw-r--r--coroutine/x86/Context.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/coroutine/x86/Context.h b/coroutine/x86/Context.h
index a783dd296f..6d3a56eaa6 100644
--- a/coroutine/x86/Context.h
+++ b/coroutine/x86/Context.h
@@ -11,6 +11,7 @@
#include <string.h>
#define COROUTINE __attribute__((noreturn, fastcall)) void
+#define COROUTINE_LIMITED_ADDRESS_SPACE
enum {COROUTINE_REGISTERS = 4};