diff options
-rw-r--r-- | vm_insnhelper.c | 12 |
1 files changed, 3 insertions, 9 deletions
@@ -79,24 +79,18 @@ vm_stackoverflow(void) ec_stack_overflow(GET_EC(), TRUE); } -NORETURN(void rb_ec_stack_overflow(rb_execution_context_t *ec, int crit)); -/* critical level - * 0: VM stack overflow or about to machine stack overflow - * 1: machine stack overflow but may be recoverable - * 2: fatal machine stack overflow - */ void -rb_ec_stack_overflow(rb_execution_context_t *ec, int crit) { if (rb_during_gc()) { rb_bug("system stack overflow during GC. Faulty native extension?"); } - if (crit > 1) { ec->raised_flag = RAISED_STACKOVERFLOW; ec->errinfo = rb_ec_vm_ptr(ec)->special_exceptions[ruby_error_stackfatal]; EC_JUMP_TAG(ec, TAG_RAISE); } - ec_stack_overflow(ec, crit == 0); } static inline void stack_check(rb_execution_context_t *ec); |