ruby-changes:65006
From: Yusuke <ko1@a...>
Date: Sat, 23 Jan 2021 10:12:09 +0900 (JST)
Subject: [ruby-changes:65006] 47d6c55755 (master): gc.c: stop overflow check on emscripten build
https://git.ruby-lang.org/ruby.git/commit/?id=47d6c55755 From 47d6c55755f28fa83872fd2a3943770e7f788895 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Sat, 23 Jan 2021 10:11:09 +0900 Subject: gc.c: stop overflow check on emscripten build --- gc.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/gc.c b/gc.c index 9dbad18..c6bc641 100644 --- a/gc.c +++ b/gc.c @@ -5535,11 +5535,6 @@ init_mark_stack(mark_stack_t *stack) https://github.com/ruby/ruby/blob/trunk/gc.c#L5535 #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) https://github.com/ruby/ruby/blob/trunk/gc.c#L5573 # 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) { -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/