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
23 23

  
24 24
#define COROUTINE __attribute__((noreturn)) void
25 25

  
26
#ifdef HAVE_STDINT_H
27
#include <stdint.h>
26 28
#if INTPTR_MAX <= INT32_MAX
27 29
#define COROUTINE_LIMITED_ADDRESS_SPACE
28 30
#endif
31
#endif
29 32

  
30 33
// This stack copying implementation which uses a private stack for each coroutine, including the main one.
31 34
#define COROUTINE_PRIVATE_STACK
32
-- a/coroutine/ucontext/Context.h
35
++ b/coroutine/ucontext/Context.h
......
16 16

  
17 17
#define COROUTINE __attribute__((noreturn)) void
18 18

  
19
#ifdef HAVE_STDINT_H
20
#include <stdint.h>
19 21
#if INTPTR_MAX <= INT32_MAX
20 22
#define COROUTINE_LIMITED_ADDRESS_SPACE
21 23
#endif
24
#endif
22 25

  
23 26
struct coroutine_context
24 27
{