Project

General

Profile

Feature #17752 » ruby-COROUTINE_LIMITED_ADDRESS_SPACE.patch

Fix the definition of `COROUTINE_LIMITED_ADDRESS_SPACE` - xtkoba (Tee KOBAYASHI), 04/07/2021 12:58 AM

View differences:

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
{
(3-3/5)