diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2021-01-23 10:11:09 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2021-01-23 10:11:50 +0900 |
commit | 47d6c55755f28fa83872fd2a3943770e7f788895 (patch) | |
tree | a7d30ec0a0716d258155fd9faf9155f4ad077189 /gc.c | |
parent | 1dfddac39364f9f982e73f6d0d17a0e824e6e6bd (diff) |
gc.c: stop overflow check on emscripten build
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -5535,11 +5535,6 @@ init_mark_stack(mark_stack_t *stack) #define STACK_END (ec->machine.stack_end) #define STACK_LEVEL_MAX (ec->machine.stack_maxsize/sizeof(VALUE)) -#ifdef __EMSCRIPTEN__ -#undef STACK_GROW_DIRECTION -#define STACK_GROW_DIRECTION 1 -#endif - #if STACK_GROW_DIRECTION < 0 # define STACK_LENGTH (size_t)(STACK_START - STACK_END) #elif STACK_GROW_DIRECTION > 0 @@ -5578,7 +5573,7 @@ ruby_stack_length(VALUE **p) # define PREVENT_STACK_OVERFLOW 0 #endif #endif -#if PREVENT_STACK_OVERFLOW +#if PREVENT_STACK_OVERFLOW && !defined(__EMSCRIPTEN__) static int stack_check(rb_execution_context_t *ec, int water_mark) { |