Feature #17752 » ruby-COROUTINE_LIMITED_ADDRESS_SPACE.patch
| coroutine/copy/Context.h | ||
|---|---|---|
|
#define COROUTINE __attribute__((noreturn)) void
|
||
|
#ifdef HAVE_STDINT_H
|
||
|
#include <stdint.h>
|
||
|
#if INTPTR_MAX <= INT32_MAX
|
||
|
#define COROUTINE_LIMITED_ADDRESS_SPACE
|
||
|
#endif
|
||
|
#endif
|
||
|
// This stack copying implementation which uses a private stack for each coroutine, including the main one.
|
||
|
#define COROUTINE_PRIVATE_STACK
|
||
|
-- a/coroutine/ucontext/Context.h
|
||
|
++ b/coroutine/ucontext/Context.h
|
||
| ... | ... | |
|
#define COROUTINE __attribute__((noreturn)) void
|
||
|
#ifdef HAVE_STDINT_H
|
||
|
#include <stdint.h>
|
||
|
#if INTPTR_MAX <= INT32_MAX
|
||
|
#define COROUTINE_LIMITED_ADDRESS_SPACE
|
||
|
#endif
|
||
|
#endif
|
||
|
struct coroutine_context
|
||
|
{
|
||