mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
gc.c: stop overflow check on emscripten build
This commit is contained in:
parent
1dfddac393
commit
47d6c55755
1 changed files with 1 additions and 6 deletions
7
gc.c
7
gc.c
|
@ -5535,11 +5535,6 @@ init_mark_stack(mark_stack_t *stack)
|
||||||
#define STACK_END (ec->machine.stack_end)
|
#define STACK_END (ec->machine.stack_end)
|
||||||
#define STACK_LEVEL_MAX (ec->machine.stack_maxsize/sizeof(VALUE))
|
#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
|
#if STACK_GROW_DIRECTION < 0
|
||||||
# define STACK_LENGTH (size_t)(STACK_START - STACK_END)
|
# define STACK_LENGTH (size_t)(STACK_START - STACK_END)
|
||||||
#elif STACK_GROW_DIRECTION > 0
|
#elif STACK_GROW_DIRECTION > 0
|
||||||
|
@ -5578,7 +5573,7 @@ ruby_stack_length(VALUE **p)
|
||||||
# define PREVENT_STACK_OVERFLOW 0
|
# define PREVENT_STACK_OVERFLOW 0
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#if PREVENT_STACK_OVERFLOW
|
#if PREVENT_STACK_OVERFLOW && !defined(__EMSCRIPTEN__)
|
||||||
static int
|
static int
|
||||||
stack_check(rb_execution_context_t *ec, int water_mark)
|
stack_check(rb_execution_context_t *ec, int water_mark)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue